Features » Design and development

Designing templates

The site template contains the HTML <head> and <body>, with the markup which is common to every page, like the header, footer and main menu. You place the text [page-template] where the HTML for each different page should be inserted.

Page templates are separate files with just the HTML to insert into the site template. In the console, for each page, you can select which page template to use.

Tokens are special strings in square brackets, which you add to your templates wherever you need content or other data to be inserted. Some of the available tokens include:

  • [page-title][page-meta-description] - page properties
  • [lang] - the language code for the current page
  • [dir] - the text direction (ltr ot rtl)
  • [lang-list][lang-select] - HTML for a language list or selector (for multi-language sites)
  • [menu] - HTML for the main menu
  • [elementn][commonn] - page content or common content with ID n
  • [listn] - HTML for a list with ID n
  • and more...

Lists generate their own HTML, as unordered list which you can style however you like with CSS, but if you need to, you can customise your lists with your own list templates.

You are also able to design your own custom error documents, e.g. for 404 Not Found errors.

 

Next page: Adding functionality »