Opening 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.
NOTE
|
|
You can also manually update the documents for template changes if necessary (see Manually updating documents that are based on templates).
|
To open and edit a template file:
- In the Assets panel (Window > Assets), select the Templates category on the left side of the panel.
The Assets panel lists all of the available templates for your site and displays a preview of the selected template.
- In the list of available templates, do one of the following:
- Double-click the name of the template you want to edit.
- Select a template to edit, then click the Edit button at the bottom of the Assets panel.
The template opens in the Document window.
- Modify the content of the template as desired.
TIP
|
|
To modify the templates page properties, select Modify > Page Properties. (Documents based on a template inherit the templates page properties.)
|
- Save the template.
Dreamweaver prompts you to update pages based on the template.
- Click Update to update all documents based on the modified template; click Dont Update if you dont want to update documents based on the modified template.
Dreamweaver displays a log indicating the files that were updated.
To open and modify the template attached to the current document:
- Open the template-based document in the Document window.
- Do one of the following:
- Select Modify > Templates > Open Attached Template.
- Right-click (Windows) or Control-click (Macintosh), then select Templates > Open Attached Template.
- Modify the content of the template as desired.
TIP
|
|
To modify the templates page properties, select Modify > Page Properties. (Documents based on a template inherit the templates page properties.)
|
- Save the template.
Dreamweaver prompts you to update pages based on the template.
- Click Update to update all documents based on the modified template; click Dont Update if you dont want to update documents based on the modified template.
Dreamweaver displays a log indicating the files that were updated.
Related topics
- Manually updating documents that are based on templates
- Updating templates in a Contribute site
- Checking template syntax