Chon CMS ALPHA
Template Variables injected in Velocity
Each HTML representation of a node is guided (rendered) by velocity template. The framwork injects sevral variables inside rendering pipeline, in general this is everything the designer (or developer) needs for a node representation. The most common use will have the following variables
- $this - current node (representation of the node with all its properties and child nodes)
Each node can have different properties, designer should be aware of what type of node will be put into that context.
- $ctx - application context, most used variable from this is $ctx.siteUrl
- $ext - extenstion map
This is the most flexible variable, based on extenstions registered on the system. By default "utils" extenstion will always be present so designer can use one of its methods: