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 eZ publish 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 (pagelayout, node and system templates)
- Template structure
- The template language
- The main template (the pagelayout)
- Template variables available in the pagelayout
- How basic template tasks can be done
- How information can be retrieved from the CMS
- The template override system
In this section
- Template basics Exponential Documentation
- The pagelayout The pagelayout is the main template. Among other things, it dictates the overall look of a site. The filename of the pagelayout template must be "pagelayout.tpl". It has to be placed inside the "templates" directory of a design. If Exponential is unable to find a pagelayout within the current design
- 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 This section sheds light on some common issues related to template development.
- Information extraction Information that is stored by eZ publish 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 tha
- The template override system The template override system makes it possible to use other templates than the default ones (specified in the code for the different views and templates). This mechanism allows the creation of template overrides for virtually any template that is used by eZ publish (including templates that are requ
Contributors
- Balazs Halasy Updated
- Bric Milligan Commenter
Comments (1 historical)
Written by readers of the earlier documentation sites, kept as they were.
Text and hit counters
Bric Milligan ·
Is there a list of text commands available like <emphasize> can I make text different coulours, flash or scroll?
Also I want to insert a hit counter yrl but cannot seem to get that right!
[email protected]