How to Edit All Pages in a Site with a Dreamweaver Template

The great advantage of Dreamweaver templates is that you can automatically apply changes to all the pages created with a template by altering the original template. For example, if you have links in an uneditable region, you can later automate the process by making the change in the template. Dreamweaver can add the new link to all the pages in the site created from that template automatically.

To edit and update all pages in a site that were created from a template, follow these steps:

  1. Open the template file.

    Note that template files are distinguishable by the .dwt extension and are saved in the Templates folder.

    If you’re not sure which template was used to create a page, check its name in the top-right corner of the page. If you don’t see the template name, choose View→Visual Aids→Invisible Elements to turn on the feature that displays the template name.

  2. Use Dreamweaver's editing features to make any changes you want to the template.

    Remember that only changes to uneditable regions are updated automatically. In this example, the logo and navigation elements are locked regions and can be edited to make global changes. Thus, if you add a new link to the row of links at the top of the page, it will be added to all the pages created from the template.

  3. Choose File→Save.

    The Update Template Files dialog box appears, listing all the pages created from the template.

    image0.jpg
  4. Click the Update button to modify all pages listed in the Update Template Files dialog box.

    (Click the Don’t Update button to leave these pages unchanged.) If you click Update, Dreamweaver automatically changes all the pages listed in the Update Template Files dialog box to reflect any changes made to uneditable regions of the template.

  • Add a Comment
  • Print
  • Share
blog comments powered by Disqus
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.