About editing and updating templates
When you make changes to and save a template, all the documents based on the template are updated. You can also manually update a template-based document or the entire site if necessary.
Use the Templates category of the Assets panel to manage existing templates, including renaming template files and deleting template files.
You can perform the following template management tasks with the Assets panel:
Create a template
Edit and update templates
Apply or remove a template from an existing document
Dreamweaver checks template syntax when you save a template but it’s a good idea to manually check the template syntax while you’re editing a template.
Open a template for editing
You can open a template file directly for editing, or you can open a template-based document, then open the attached template for editing.
When you make a change to a template, Dreamweaver prompts you to update the documents based on the template.
Change a template description
The template description appears in the New Document dialog box when you’re creating a page from an existing template.
- Select Modify > Templates > Description.
- In the Template Description dialog box, edit the description and click OK.
Manually update documents based on templates
When you make a change to a template, Dreamweaver prompts you to update the documents based on the template, but you can manually update the current document or the entire site if necessary. Manually updating template-based documents is the same as reapplying the template.
Update the entire site or all documents that use a specified template
You can update all the pages in the site, or only update pages for a specific template.
- Select Modify > Templates > Update Pages.
- In the Look In menu, do one of the following:
To update all the files in the selected site to their corresponding templates, select Entire Site, then select the site name from the adjacent pop‑up menu.
To update files for a specific template, select Files That Use, then select the template name from the adjacent pop‑up menu.
- Make sure Templates is selected in the Update option.
- If you don’t want to see a log of the files Dreamweaver updates, deselect the Show Log option; otherwise, leave that option selected.
- Click Start to update 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.
- Click Close.
Update templates in a Contribute site
Contribute users can’t make changes to a Dreamweaver template. You can, however, use Dreamweaver to change a template for a Contribute site
Keep these factors in mind when updating templates in a Contribute site:
Contribute retrieves new and changed templates from the site only when Contribute starts up and when a Contribute user changes their connection information. If you make changes to a template while a Contribute user is editing a file based on that template, the user won’t see the changes to the template until they restart Contribute.
If you remove an editable region from a template, a Contribute user editing a page based on that template might be confused about what to do with the content that was in that editable region.
To update a template in a Contribute site, complete the following steps.
- Open the Contribute template in Dreamweaver, edit it, and then save it. For instructions, see Open a template for editing.
- Notify all of the Contribute users who are working on the site to restart Contribute.
.
at
the bottom of the Assets panel.
To modify the template’s page properties,
select Modify > Page Properties. (Documents based on
a template inherit the template’s page properties.) 