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.
    • Note that all templates must contain a region called DEFAULT where a page's "default" content will appear. If a default region doesn't exist, upon template creation the system will automatically generate a default region tag immediately after the opening <body> tag of the 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.