Home > Products > Dreamweaver > Support > Using Templates
Dreamweaver Icon Macromedia Dreamweaver Support Center - Using Templates
Editing a template and updating pages

When you edit a template, you can choose to apply the changes to all pages that use that template. For example, to change the identity graphic for the E-zine site on all sample pages in the site, change the graphic in the template and direct Dreamweaver to update the pages in the site that use the template.

For most changes, editing a template is like editing any page in a site. You add, delete, or modify the content of the template. Editing a template differs from editing other pages because you can define new editable regions, or lock editable regions.

To edit a template:

1 Choose Window > Templates.
2 In the Templates palette, double-click the template.
3 In the document window, select an item in the template you want to modify. The Property inspector displays properties for the selected object, including the filename.
If you have selected an image to modify, see Modifying an image. If you have selected a library item to modify, see Modifying a library item.
In the E-zine index template shown here, the header graphic is selected.

4 To create a new object in the template, click or drag an object from the Object palette into the document window.
For more information on creating or modifying a page layout, see "Creating and editing HTML documents" in Dreamweaver Help.
5 To define a new object as an editable region, select the object and choose Modify > Templates > Mark Selection as Editable. Enter a name for the region in the New Editable Region dialog box, and click OK.
Note: The following characters are not valid for region names: ampersands (&), angle brackets (<>), apostrophes (`), and quotation marks (").

6 To lock an editable region, choose Modify > Templates > Unmark Editable Region. Select the name of the region you want to lock in the Unmark Editable Region dialog box, and click OK.
For more information, see "Defining a template's editable regions" in Dreamweaver Help.
7 Save the template file.
8 If the template has been applied to documents in the site, choose an option in the dialog box:
Click Yes to apply the changes to the documents in the site that use the template.
Click No to preserve the documents unchanged.
To Table of Contents Back to Previous document Forward to next document