Operation Manual
390
USING DREAMWEAVER
Creating and managing templates
Last updated 3/28/2012
• 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.
1 Open the Contribute template in Dreamweaver, edit it, and then save it. For instructions, see “Open a template for
editing” on page 387.
2 Notify all of the Contribute users who are working on the site to restart Contribute.
Delete a template file
1 In the Assets panel (Window > Assets), select the Templates category on the left side of the panel .
2 Click the name of the template to select it.
3 Click the Delete button at the bottom of the panel, then confirm that you want to delete the template.
Important: 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.
More Help topics
“Detach a document from a template” on page 392
“Applying or removing a template from an existing document” on page 391
“Creating a Dreamweaver template” on page 374
Exporting and importing template content
About template XML content
You can think of a document based on a template as containing data represented by name-value pairs. Each pair
consists of the name of an editable region, and the contents of that region.
You can export the name-value pairs into an XML file so that you can work with the data outside of Dreamweaver (for
example, in an XML editor or a text editor, or a database application). Conversely, if you have an XML document that’s
structured appropriately, you can import the data from it into a document based on a Dreamweaver template.
Export a document’s editable regions as XML
1 Open a template-based document that contains editable regions.
2 Select File > Export > Template Data As XML.
3 Select one of the Notation options:
• If the template contains repeating regions or template parameters, select Use Standard Dreamweaver XML Tag.
• If the template does not contain repeating regions or template parameters, select Use Editable Region Names as
XML Tags.
4 Click OK.