Reusing Content with Templates and Libraries > Updating pages based on a template |
Updating pages based on a template
When you make a change to a template, Dreamweaver prompts you to update the pages based on the template. You can also use the update commands to manually update the current page or the entire site. Using the update commands is the same as reapplying the template.
For information on editing templates, see Creating templates and Defining a template's editable regions.
To open and modify the template used to create the current document:
1 | Choose Modify > Templates > Open Attached Template. |
2 | Modify the content of the template as desired. To modify the template's page properties, choose Modify > Page Properties. (Documents based on a template inherit the template's page properties, except for the page title.) |
To update the current document to use the current version of a template:
Choose Modify > Templates > Update Current Page.
To update the entire site or all documents that use a particular template:
1 | Choose Modify > Templates > Update Pages. |
The Update Pages dialog box appears. | |
2 | In the Look In pop-up menu, do one of the following: |
Choose Entire Site, and then choose the site name from the adjacent pop-up menu. This updates all pages in the selected site to their corresponding templates. | |
Choose Files That Use, and then choose the template name from the adjacent pop-up menu. This updates all pages in the current site that use the selected template. | |
3 | Make sure Templates is selected in the Update option. (To update library items at the same time, make sure Library Items is also selected. See Creating, managing, and editing library items for more information.) |
4 | Click Start. |
Dreamweaver updates the files as indicated. If you selected the Show Log option, Dreamweaver provides information about the files it attempts to update, including information on whether they were updated successfully. | |