SiteVision Onlinehelp
Search

sv:template

A template node is always a child node of the template repository (sv:templateRepository). It has only one child node, the page content (sv:pageContent) node.

The templates are located in the page template view of the top left navigation area in the editor view.

Node name
NameType and description
<template-name>Dynamic / Model dependent
 The given name of the template
Properties
NameType and description
URIjavax.jcr.PropertyType.URI
 The relative URI of the template
displayNamejavax.jcr.PropertyType.STRING
 The given name of the template
templatejavax.jcr.PropertyType.WEAKREFERENCE
 The template which is used by the template
URLjavax.jcr.PropertyType.URI
 The absolute URI of the template
visibleInMenusjavax.jcr.PropertyType.BOOLEAN
 Indicates whether or not the template is visible in menus
localejavax.jcr.PropertyType.STRING
 Language settings
robotsIndexjavax.jcr.PropertyType.BOOLEAN
 Indicates whether or not the template may be indexed by a web robot
publishedjavax.jcr.PropertyType.BOOLEAN
 Whether or not the template is published
publishDatejavax.jcr.PropertyType.DATE
 Date when the template was published. Note! This property doesn't exist if the template is not published (i.e. property "published" == false).
publishedByjavax.jcr.PropertyType.WEAKREFERENCE
 User that published the template. Note! This property doesn't exist if the template is not published (i.e. property "published" == false). [@since SiteVision 3.5.3]
lastPublishDatejavax.jcr.PropertyType.DATE
 Last date when the template was published, this date will change if an already published template is republished. Note! This property doesn't exist if the template is not published (i.e. property "published" == false).
lastPublishedByjavax.jcr.PropertyType.WEAKREFERENCE
 Last user that published the template. Note! This property doesn't exist if the template is not published (i.e. property "published" == false). [@since SiteVision 3.5.3]
creationDatejavax.jcr.PropertyType.DATE
 Date when the template was created.
createdByjavax.jcr.PropertyType.WEAKREFERENCE
 The user that created the template
lastModifiedDatejavax.jcr.PropertyType.DATE
 Date when the template was modified.
lastModifiedByjavax.jcr.PropertyType.WEAKREFERENCE
 The user that modified the template
scheduledPublishDatejavax.jcr.PropertyType.DATE
 Date when the template is scheduled to be published
scheduledUnpublishDatejavax.jcr.PropertyType.DATE
 Date when the template is scheduled to be unpublished
resourcePriorityjavax.jcr.PropertyType.LONG
 The search resource priority, influences document boost when indexed [@since SiteVision 3.6.4]

SiteVision Utility API tip!

  • The TemplateUtil interface exposes a set of methods for locating a sv:template.
  • The StructureUtil interface exposes a set of methods to move a sv:template to another parent.
  • The TrashcanUtil interface provides a set of methods to remove or restore a sv:template.

Last updated:

se-sto-pio-sv5-1.sitevision-cloud.net
18.118.45.162