In the Assets panel (Window > Assets), select the Templates icon on the left side of the panel.
Learn how to edit, update, and delete templates in Dreamweaver, and update templates in a Contribute site.
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.
To edit a template for a Contribute site, you must use Dreamweaver; you cannot edit templates in Contribute.
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 using 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.
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.
You can also manually update the documents for template changes if necessary.
In the Assets panel (Window > Assets), select the Templates icon 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.
Dreamweaver displays a log indicating the files that were updated.
Select Tools > Templates > Open Attached Template.
To modify the template’s page properties, select File > Page Properties. (Documents based on a template inherit the template’s page properties)
Dreamweaver displays a log indicating the files that were updated.
In the Assets panel (Window > Assets), select the Templates icon on the left side of the panel.
This method of renaming works in the same way as renaming a file in Windows Explorer (Windows) or the Finder (Macintosh). As with Windows Explorer and the Finder, be sure to pause briefly between clicks. Do not double-click the name, because that opens the template for editing.
An alert asks if you want to update documents that are based on this template.
The template description appears in the New Document dialog box when you’re creating a page from an existing template.
Select Tools > Templates > Description.
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.
Select Tools > Templates > Update Current Page.
Dreamweaver updates the document with any template changes.
You can update all the pages in the site, or only update pages for a specific template.
Select Tools > Templates > Update Pages...
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.
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.
In the Assets panel (Window > Assets), select the Templates icon on the left side of the panel.
After you delete a template file, you can’t retrieve it. The template file is deleted from your site.
Documents that are based on a deleted template are not detached from the template; they retain the structure and editable regions that the template file had before it was deleted. You can convert such a document into an HTML file without editable or locked regions.
Conectați-vă la cont