There are two types of template shortcuts. Those that call a function in the scripts and those that display the value of a variable field from the database. Shortcuts must be enclosed in shortcut markers. There are two types of markers, static and dynamic.
Static markers specify the the PHP page generator should go ahead and preform the shortcut when it generates the PHP page. This is suitable for fields that do not change often, such as store names and URL paths. Static markers can help cut down on the processing required each time a page is called. But, when in doubt, it would be better to go ahead and use dynamic markers, which gets translated into PHP code and therefore, performed each time the page is called. This is a must for variable data such as customer account information.
The default templates for static markers is [[ and ]]. For dynamic, the default markers are {{ and }}. The defaults can be changed in the Template settings in the Template Wizard. Be sure to see the section on Generating PHP Pages.
Function Type Shortcuts Index
Function Type Shortcuts Details
Variable Shortcuts
|