This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?

Adobe Dreamweaver CS3

Templates: An Overview

Dreamweaver templates are a great way to keep pages in your site consistent. Not only will all your pages have a similar look, but they will be easy to update as well . Templates are created similar to web pages. Once the template is created, new pages can be based on that template. For information on creating templates, refer to Creating Templates. If you have existing pages in your site that you wish to add a template to, refer to Applying Templates.

Dreamweaver templates allow you to make a change to a template and then decide whether you would like Dreamweaver to automatically make the same change on all documents based on that template. For information on automatically updating pages, refer to Updating Pages Based on a Template.

Template Regions

Dreamweaver templates consist of regions. When creating a template you have two types of regions available, locked and unlocked. As you create pages based on a template, these regions determine where editable content will be included on the page. Template regions are enclosed by a teal region box with a tab at the top that displays the region name. For information on inserting regions, see Creating Templates.

Template Region annotated

Locked Regions

Changes to a locked region of a template can only be made on the original template. This is helpful when you want to include information which appears on every page (e.g., contact information). If a change is made to the original template, Dreamweaver gives you the option of applying this change to all pages based on that template. Dreamweaver templates have three types of regions: a Locked Region, a Repeating Region, and an Optional Region.

Locked Region
All elements placed into a Dreamweaver template, by default, are locked (i.e., a template can be considered one big locked region). The content of a Locked Region cannot be modified when working on a template-based page. The template must contain an unlocked region if editable material is to be included in any template-based pages.
NOTE: If you have not created an Editable Region within your template, Dreamweaver will prompt you to do so with a warning box before you save or close the newly created template.

Repeating Region
Repeating Regions help ensure the consistency of sections that will appear multiple times in your template-based page. For example, if a template contains a table row that is designated as a Repeating Region, that row can be repeated in template-based pages as content is added to the table.
NOTE: In order for the Repeating Region to be editable, an Editable Region must be placed within the Repeating Region.

Optional Region
An Optional Region is used to control page content that may or may not be displayed. This type of region can be displayed when a certain condition--set in the template--is true or false. For example, if the current month is December, an optional region may be displayed containing the text Happy Holidays.

Unlocked Regions

Unlocked regions give full control over content in that area on a template-based page. There are two unlocked regions available in Dreamweaver, an Editable Region and an Editable Optional Region.

Editable Region
Editable, or unlocked, regions allow content to be edited within the region in a template-based page. It is imperative that a template contain a minimum of one Editable Region; otherwise, pages based on the template will not be editable.
NOTE: If you have not created an Editable Region in your template, Dreamweaver will prompt you to do so with a warning box before you save or close the newly created template.

Editable Optional Region
An Editable Optional Region allows content changes in an Optional Region. If the Optional Region contains text and images, then you can choose whether or not to include the region in the web page, as well as edit all elements of the text and images. For example, a table that contains information about what's new on a website could be placed in an Editable Optional Region. When additions are made to the website, the table can be displayed as well as edited. If there are no additions, the table can be hidden.

Excellence. Our Measure. Our Motto. Our Goal.