Templates

Templates are XHTML documents that provide the structure of page assets. Templates typically contain the HTML scaffolding and necessary scripts and CSS files to produce the desired "look and feel" of a page.

Introduction

Templates are XHTML documents that provide the structure of page assets. Templates typically contain the HTML scaffolding and necessary scripts and CSS files to produce the desired "look and feel" of a page.

In addition to HTML elements, system tags are used in a template to define areas of content called regions. Once a region is defined in a template, it serves as a placeholder for interchangeable content in the form of static or dynamic blocks.

Creating a Template

To create a template:

  1. Click Add Content > Default > Template.
  2. In the Name field, enter a name for your Template.
  3. In the Placement Folder field, choose the folder where the template should be created.
  4. In the Content tab, add content to your template either by uploading a plain text/HTML file or by entering content directly into the code editor.
    • Use system tags to define content areas in your template.
  5. In the Configure tab, you will see system regions defined in the template which you can then populate with blocks and formats.
    • Blocks and formats assigned at the template level will be inherited by all pages that use the template, but can be overridden at the Configuration or page levels.
    • Optionally, you can select an XSLT format to apply at the template level.
  6. Click Preview Draft and Submit.
Note - All Templates are required to include a system-region named DEFAULT which is populated with content specific to pages that use the Template. Other region names can be used to create as many additional content regions as necessary. If a DEFAULT region doesn't exist when the Template is created, one will automatically be added immediately after the opening <body> tag.