Sitevision Developer
Log in

Log in

sv:image

An image node is located in an image repository (sv:imageRepository) or a local image repository (sv:localImageRepository). It has no children.

Node

Name

Type and description

<image-name>

Dynamic / Model dependent


The given name of the image.

 

Properties

Name

Type and description

alt

javax.jcr.PropertyType.STRING


The alternative text for the image (description)* 



caption

javax.jcr.PropertyType.STRING


The image caption [@since 2024.07.1]



createdBy

javax.jcr.PropertyType.WEAKREFERENCE 


The user that created the image 



creationDate

javax.jcr.PropertyType.DATE 


Date when the image was created 



description

javax.jcr.PropertyType.STRING 


A given description of the image (longdesc)* 



displayName

javax.jcr.PropertyType.STRING 


The file name of the image 



fileName

javax.jcr.PropertyType.STRING 


The physical file name 



 height

javax.jcr.PropertyType.STRING 


Size properties for the image (e.g. 100)



lastModifiedBy

javax.jcr.PropertyType.WEAKREFERENCE 


The user that modified the image 



lastModifiedDate

javax.jcr.PropertyType.DATE 


Date when the image was modified



length

javax.jcr.PropertyType.LONG


The length of the image [@since Sitevision 2.6.2_03]



locale

javax.jcr.PropertyType.STRING 


Language settings 



mimeType

javax.jcr.PropertyType.STRING


The file mime type



resourcePriority

javax.jcr.PropertyType.LONG


The search resource priority, influences document boost when indexed [@since Sitevision 3.6.4] 



robotsIndex

javax.jcr.PropertyType.BOOLEAN


Indicates whether or not the image may be indexed by a web robot



URI

javax.jcr.PropertyType.URI


The relative URI of the image 



URL

javax.jcr.PropertyType.URI 


The absolute URI of the image 



visibleInMenus

javax.jcr.PropertyType.BOOLEAN 


Indicates whether or not the image is visible in menus



width

javax.jcr.PropertyType.STRING 


Size properties for the image (e.g. 100) 

Note that the "description" property corresponds to the "longdesc" setting of the image and the "alt" property corresponds to the "description" setting.

Sitevision Utility API tip!

  • ​The ImageUtil interface exposes a set of methods for creating a sv:image.
  • The ImageRenderer can be used to render a sv:image in different sizes.
  • The ImageLinkRenderer can be used to render a linked sv:image in different sizes.
  • The LinkRenderer interface can be used to render a plain link to a sv:image.
  • The actual binary content of a sv:image can be read via an InputStream of a Binary. The PropertyUtil interface exposes a set of methods for getting the Binary for a sv:image.
  • The StructureUtil interface exposes a set of methods to move a sv:image to another parent.
  • The TrashcanUtil interface provides a set of methods to remove or restore a sv:image.
Did you find the content on this page useful?