Customize Content with CMS Template Language
(Website Administrator only)
A display template provides a customizable view of a content item’s properties such as title and author. These properties are dynamically inserted through the use of CMS template language. There are three different ways to add template variables to display properties:
SYNTAX | WHEN TO USE |
---|---|
t:value | This is the recommended way to add template variables. |
${url} |
Because the t:value syntax cannot be used within HTML attributes, this is an alternate syntax that can be used in attributes. Note: The ${} syntax may not work properly outside of an attribute. It is recommended that you use the t:value syntax outside of attributes and the ${} syntax within attributes. |
<span class="templateVariable"> | This syntax exists for legacy purposes only. Its use is not recommended. Use t:value and ${} instead. |