2.4. Template Tags

PivotX uses Smarty for its template engine. So if you'd like to get deeper into the PivotX templates, it's suggested that you familiarize yourself with Smarty. Get the documentation here:

Everything that works with Smarty will work in PivotX templates. Just keep in mind that we use different delimiters, so you should use [[tag]] instead of {tag}.

Currently, there's only a single page documenting some of the new tags that were introduced in PivotX 2. Later, this page will contain all information on how to write, edit and organize your templates.

Template Tags

As mentioned above, PivotX uses Smarty as the template language. This means that there are two types of tags - functions and blocks.

Functions - template tags that accept (optional) parameters controlling the output of the tag. The general syntax is

[[ tag_name para_name1="some value" para_name2="some value" ... ]]

Blocks - template tags that come in pairs, an opening and closing tag pair, defining a block. The content of the block is passed to the template tag. The opening tag can take optional parameters. The general syntax is

[[ tag_name para_name1="some value" ... ]]  
    Some text  
    Some text  
    Some text  
[[ /tag_name ]]

All of the tags are described in detail in Appendix B: List of Template Tags.