SiteVision Onlinehelp
Search

sv:file

A file node is always located in a file repository (sv:fileRepository) or a local file repository (sv:localFileRepository). It has no children.

Files are either located in the file archive available in top left file archive frame in the editor view or locally stored in a page, template or article.

Node name
NameType and description
<file-name>Dynamic / Model dependent
 The name of the file (e.g. "aFile.pdf")
Properties
NameType and description
URIjavax.jcr.PropertyType.URI
 The relative URI of the file
displayNamejavax.jcr.PropertyType.STRING
 The name of the file
descriptionjavax.jcr.PropertyType.STRING
 A given description of the file
URLjavax.jcr.PropertyType.URI
 The absolute URI of the file
visibleInMenusjavax.jcr.PropertyType.BOOLEAN
 Indicates whether or not the file is visible in menus
localejavax.jcr.PropertyType.STRING
 Language settings
robotsIndexjavax.jcr.PropertyType.BOOLEAN
 Indicates whether or not the file may be indexed by a web robot
mimeTypejavax.jcr.PropertyType.STRING
 The file mime type
fileNamejavax.jcr.PropertyType.STRING
 The physical file name
lengthjavax.jcr.PropertyType.LONG
 The length of the file [NOTE! @since SiteVision 2.6.2_03]
downloadProtectedjavax.jcr.PropertyType.BOOLEAN
 Whether or not the file is temporarily download protected [NOTE! @since SiteVision 3.1]
resourcePriorityjavax.jcr.PropertyType.LONG
 The search resource priority, influences document boost when indexed [@since SiteVision 3.6.4]

SiteVision Utility API tip!

  • ​The FileUtil interface exposes a set of methods for creating a sv:file
  • The FileIconRenderer can be used to render file icons for a specific file (i.e. file extension).
  • The actual binary content of a sv:file can be read via an InputStream of a Binary. The PropertyUtil interface exposes a set of methods for getting the Binary for a sv:file.
  • The StructureUtil interface exposes a set of methods to move a sv:file to another parent.
  • The TrashcanUtil interface provides a set of methods to remove or restore a sv:file.
  • The LinkRenderer interface can be used to render a link to a sv:file.

Last updated:

se-sto-ste-sv5-1.sitevision-cloud.net
3.135.213.214