You can create a template from an existing document (such as an HTML, Macromedia ColdFusion, or Microsoft Active Server Pages document) or you can create a template from a new, blank document.
After you create a template, you can insert template regions (see Types of template regions). You can also set template preferences for code coloring and template region highlight color (see Customizing code coloring preferences for a template and Setting highlighting preferences for template regions).
TIP |
|
You can store additional information about a template (such as who created it, when it was last changed, or why you made certain layout decisions) in a Design Notes file for the template (see Associating Design Notes with files). Documents based on a template do not inherit the templates Design Notes. |
NOTE |
|
For more information about creating a new document, see Creating a new blank document. |
NOTE |
|
Unless you selected Dont Show This Dialog Again in the past, youll receive a warning that says the document youre saving has no editable regions. Click OK to save the document as a template, or click Cancel to exit this dialog box without creating a template. |
The Save As Template dialog box appears.
Dreamweaver saves the template file in the sites Templates folder in the local root folder of the site, with a .dwt filename extension. If the Templates folder does not already exist in the site, Dreamweaver automatically creates it when you save a new template.
NOTE |
|
Do not move your templates out of the Templates folder, or put any non-template files in the Templates folder. Also, do not move the Templates folder out of your local root folder. Doing so causes errors in paths in the templates. |
The Templates category of the Assets panel appears.
A new, untitled template is added to the list of templates in the Assets panel.
Dreamweaver creates a new blank template in the Assets panel and in the Templates folder.