Templates
The purpose of this chapter is to reveal and teach everything there is to know about the template system. It describes both the template language and the way the system handles the template files. People previously unfamiliar with Exponential templates should be able to collect enough information in order to understand the following issues:
- What a template is and what it is not
- Template types (page layout, node and system templates)
- Template structure
- The template language
- The main template (the page layout)
- Template variables available in the page layout
- How basic template tasks can be done
- How information can be retrieved from the Content Management System
- The template override system
In this section
- Template basics Exponential Documentation
- The pagelayout The page layout is the main template. Among other things, it dictates the overall look of a site. The file name of the page layout template must be "pagelayout.tpl". It has to be placed inside the "templates" directory of a design. If Exponential is unable to find a page layout within the current de
- The template language The Exponential template language makes it possible to extract information from the system and to solve common programmatic issues like for example conditional branching, looping, etc. All Exponential specific code must be placed inside a set of curly brackets, "{" and "}". A template file is a comb
- Basic template tasks Exponential Documentation
- Information extraction Information that is stored by Exponential can be extracted using the "fetch" template operator. This operator gives access to the fetch functions that a module provides. It is typically used to extract nodes, objects, etc. using the content module. The fetch operator can only be used with modules th
- The template override system Exponential Documentation
Contributors
- Balazs Halasy Updated
Comments
Add a comment