| Category: Home > Manual > Designer |
TemplatesBWPMS Templates are mainly HTML files, with special tags of two diferent type, that represent variables and modules placeholder.Those two tag types can be inserted anyplace in a template, and will be replaced when the template is processed. Usually, and in the corrent version of BWPMS each site have a main template that will be used for every page in the site, and can have as much as needed smaller templates that will be used by specific modules. Some modules define variables that are available for the main template, others just define variables for their specific templates, without defining variables to the main template. The main template have the name main and need to be created, or other way the site will render. The special tags refered above can be defined as:
When processing a template, BWPMS will replace all the existent placeholder with a specific name with the content returned by the first call of the module defined for that placeholder. The main template have, at least, the variable stitle, that contains the title related to the page requested, and sitename, that contain the sitename options. If no module in the page change the value in this variable it will contain the site slogan option. Other variables can existe, depending on the modules executed to process each specific page. When a variable tag exist on a template for a variable not defined, the variable place is replaced with an empty string (removed). Here is a small example template: <html>See Still the templates for a quick information on this template. |
