Available Data
Access Project Properties
Various properties from the current environment can be used within templates but access must be granted through the setProps
command in the hooks.js file first.
With this in place, we gain access to the following within template files.
Project Properties
Property Name | Type | Description |
---|---|---|
| String | |
| String | |
| String | |
| String | |
| String | |
| String | |
| String | |
| Boolean | |
| String | |
| String | |
| String |
Page Properties
Property Name | Type | Description |
---|---|---|
| String | |
| String | |
| String | |
| String | |
| String | |
| String | |
| String | |
| String | |
| String |
Node Properties
Property Name | Type | Description |
---|---|---|
{{node.id}} | String | |
{{node.parent.id}} | String | |
{{node.parent.container}} | String | |
{{node.title}} | String |
Element Properties
Property Name | Type | Description |
---|---|---|
{{element.group}} | String | |
{{element.title}} | String | |
{{element.version}} | String | |
{{element.assetPath}} | String | |
{{element.siteAssetPath}} | String |
Last updated