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

Name

Type and description

<template-name>

Dynamic / Model dependent


The given name of the template.

 

Properties

Name

Type and description

createdBy

javax.jcr.PropertyType.WEAKREFERENCE


The user that created the template.



creationDate

javax.jcr.PropertyType.DATE


Date when the page was created.



 displayName

javax.jcr.PropertyType.STRING


The given name of the template.



lastModifiedBy

javax.jcr.PropertyType.WEAKREFERENCE


Last user that published the template. Note! This property does not exist if the template is not published (i.e. property "published" == false).



 lastModifiedDate

javax.jcr.PropertyType.DATE


Date when the page was modified.



 locale

javax.jcr.PropertyType.STRING


Language settings



lastPublishedBy

javax.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 3.5.3]



 lastPublishDate

javax.jcr.PropertyType.DATE


Last date when the page was published, this date will change if an already published page is republished. Note! This property doesn't exist if the page is not published (i.e. property "published" == false).



 published

javax.jcr.PropertyType.BOOLEAN


Whether or not the page is published



publishedBy

javax.jcr.PropertyType.WEAKREFERENCE


User that published the template. Note! This property does not exist if the template is not published.



publishDate 

javax.jcr.PropertyType.DATE


Date when the page was published. Note! This property doesn't exist if the page is not published (i.e. property "published" == false).



resourcePriority

javax.jcr.PropertyType.LONG


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



robotsIndex

javax.jcr.PropertyType.BOOLEAN


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



scheduledPublishDate

javax.jcr.PropertyType.DATE


Date when the page is scheduled to be published



scheduledUnpublishDate

javax.jcr.PropertyType.DATE


Date when the page is scheduled to be unpublished



template

javax.jcr.PropertyType.WEAKREFERENCE


The template which is used by the page



URI 

javax.jcr.PropertyType.URI


The relative URI of the page



URL

javax.jcr.PropertyType.URI


The absolute URI of the page



 visibleInMenus

javax.jcr.PropertyType.BOOLEAN

 

Indicates whether or not the page is visible in menus

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.