Highlights

BWPMS Designer Manual

This Manual is intented to the Designers that want to implement sites over BWPMS plataform.

BWPMS Manual

This page is the BWPMS Manual index.

Advertise

News

Add an URL

This page explains how to add an URL to a BWPMS Page.

Pantas - Papelaria e Artigos de Escritório

Pantas is a office store. They sell all the biggest office product' brands, and are one of the biggest Dymo resellers in Portugal.

BWPMS Designer Manual

This Manual is intented to the Designers that want to implement sites over BWPMS plataform.

Suport and Info

Soon we will create mailing-lists and maybe a forum or a blog, and this is the place where they will be announced.
For now, use the Contact us form. Thanks.

Templates

BWPMS 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:

  • <?=variablename?> - this defines a place where the value of the variable variablename will be placed.
  • <?placeholder?> - this define a place where the content returned by a module will be placed. For more information on how to configure them see placeholders' modules.

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>
  <head>
    <title><?=sitename?> - <?=stitle?></title>
    <link rel="stylesheet" type="text/css" href="/styles.css"/>
  </head>
  <body>
    <div id="header"><?header?></div>
    <div id="lateral><?sidebar?></div>
    <div id="main"><?main?></div>
    <div id="footer"><?footer?></div>
  </body>
</html>


See Still the templates for a quick information on this template.