Macromedia dreamweaver 8-using dreamweaver Manuel D’Utilisation

Page de 1030
326
Chapter 11:  Managing Templates
Editing and updating templates
When you make changes to and save a template, Dreamweaver automatically updates all 
documents attached to the template. You can also manually update documents based on a 
template, if necessary. 
Dreamweaver automatically checks template syntax when you save a template. You might also 
want to check template syntax when you edit a template.
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. 
To open and edit a template file:
1.
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.
2.
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.
3.
Modify the content of the template as desired. 
NO
TE
To edit a template for a Contribute site, you must use Dreamweaver; you cannot edit 
templates in Contribute. 
NO
TE
For information about editing template-based documents, see 
NO
T
E
You can also manually update the documents for template changes if necessary (see 
TIP
To modify the template’s page properties, select Modify > Page Properties. 
(Documents based on a template inherit the template’s page properties.)