Type | Description |
---|---|
companyhome | The Company Home template node. |
userhome | The current user's Home Space template node. |
person | The node representing the current user's Person object. |
args | A map of any URL parameters passed by using the Template Content Servlet. This is a neat way to pass additional parameters to your template. FreeMarker has built-in methods to parse integers and check for the existence of values that can be used to make your template even more interactive and powerful. For example, to output the names of the arguments passed to a template: <#assign keys = args?keys> <#list keys as arg> ${arg} </#list> |
sessionticket | Session related information providing a single value sessionticket.ticket for the current authentication ticket; useful when generating some SkyVault Community Edition URLs for accessing outside the web client. |
classification | Read access to classifications and root categories. |
url | Provides a single property url.context that can be used to retrieve the container context path, such as /SkyVault; useful when generating URL links to objects. This is not available when using the template as a custom view on a space. |
workflow | Read access to information on workflow objects and the currently executing workflows for a user. |
people | This object gives access to the People API. |
The various default model objects can be accessed directly from the root of a model in your FreeMarker template. For example, to display the name property of the userhome object:
${userhome.properties.name}
The node model is built dynamically as you access it, enabling you to write statements such as:
userhome.children[1].children[0].children[2].name
<#if mynode??> <#if mynode.assocs["cm:translations"]??> ${mynode.assocs["cm:translations"][0].content} </#if> </#if>
This checks for the existence of mynode and then checks for the existence of a translation association before attempting to access the translation.