dotCMS - Open Source Content Management System, Ondemand CMS, and Professional Support

Document Search

Article Information

Since Version: 1.6.5
Tags: adding templates template
Updated: 2/17/2010 5:53:28 PM
By: Dean Gonzalez
Doc id: 147114
Print Page: Export to PDF

Adding a Template

To add a new Template from the Website Browser, first click on the Templates sub-tab , then click the "Add/Edit Template" link.

Add Template

Add Containers to the template by placing the cursor where you want a container and pressing the "Add Container" button. This will bring up a popup window in which you can browse for the right container and it will place the needed code back in the template.  In the code example below, the "Add Container" button was used to add the velocity code to parse the header, the body, and the footer containers highlighted in red. For a complete, step-by-step tutorial on creating a customized template, see the documentation section on how to Create a Customized HTML Page.

  • Putting width constraining elements within the template which wrap around the containers helps keep the page elements in the right place when in preview mode.
  • A container can only be used once in a template.

Template Code

Templates can be permissioned based upon user roles, for more information on permissions please see the documentation section on Template Permissions.

 



Post a Comment


Add Comments

   

 
Post