| Types of Template Regions |
| Dreamweaver templates can help you create web pages with a consistent design and layout. Templates also make it easy to update and maintain your site. Simply revise the templates and automatically update your site's pages based on the templates. Dreamweaver automatically locks most regions of a document when you save the document as a template. As a template author you specify which regions of a template-based document will be editable by inserting editable regions or editable parameters in the template. As you create the template, you can make changes to both editable and locked regions. In a document based on the template, however, a template user can make changes only in the editable regions; the locked regions can't be modified. |
| |
| There are four types of template regions: |
| |
| Editable Region |
| An editable region is an unlocked region in a template-based document--a section a template user can edit. A template author can specify any area of a template as editable. For a template to be effective, it should contain at least one editable region; otherwise, pages based on the template can't be edited. |
| |
| Repeating Region |
| A repeating region is a section of the layout in a document that is set to repeat. For example, you can set a table row to repeat. Usually repeating sections are editable so that the template user can edit the content in the repeating element, while the design itself is under the control of the template author. The template user uses repeat region control options to add or delete copies of the repeated region in a document based on the template as necessary. There are two types of repeating regions you can insert in a template: repeating region and repeating table. |
| |
| Optional Region |
| An optional region is a section of a template that you specify as optional, to hold content such as optional text or an image that may or may not appear in a document based on the template. In the template-based page, the template user usually controls whether the content is displayed. |
| |
| Editable Tag Attribute |
| An editable tag attribute lets you unlock a tag attribute in a template, so the attribute can be edited in a template-based page. For example, you can "lock" which image appears in the document but let the template user set the alignment to left, right, or center. |
| |
| |
|