The template is the fundamental unit of site design in eZ publish.
It's basically a HTML file that contains logic to define how content is to be displayed. It's similar in concept to most template systems, e.g. Smarty templates. Or for those of you that use straight PHP coding, it would be a PHP file that contains HTML for display of content.
All templates have the
.tpl
extention.A template contains HTML and eZ publish code.
The HTML follows the XHTML 1.0 Transitional standard.
The eZ publish code follows their proprietary scripting language, which is quite similar to PHP in syntax. It's pretty much like most scripting languages and doesn't take much to learn.
eZ publish code makes it possible to get content from the database and perform logical functions, e.g. conditional statements (if/then) and looping (while/do).
Templates are combined to form the final HTML output. The main template is pagelayout.tpl
, which contains the html
, head
, and body
tags. It dictates the overall look of...