Template -
Based Document
Creating a template-based document
Once you set the template design, you apply a template to either
a blank document or a document that already contains content.
To create a new document based on a template, you can use the
Assets panel or the New Document dialog box. The Assets panel
lists templates in your current Dreamweaver site. You can right-click
in the Templates category of the Assets panel to create a new
template, and to create new documents from a template.
In the New Document dialog box, you can select a template from
any of your currently defined Dreamweaver sites to create a
new document from.
When you create a new document based on a template, you can
choose whether the document remains attached to the template.
By default, when you change a template, all attached documents
update to reflect the template changes.
If you deselect the Update Page When Template Changes option
when creating a new document, the new document is created as
stationery: an independent HTML file, with no template regions.
Updates to the template do not change the document.
To create a template-based document in the New Document
dialog box:
- Choose File > New to open the New Document dialog box.
- In the New Document dialog box, select the Templates tab.
- In the Templates For list, select the site which contains
the template you want to use.
The site templates list updates to display templates in the
selected site.
- In the list, select the template you want to use.
- Click Create to create a new template-based page.
The document opens in the Document window.
To create a new document from a template in the Assets
panel:
- Open the Assets panel (F11), if it is not already open.
- In the Assets panel, click the Templates icon to view your
site templates.
Tip: If you just created the template you
want to apply, you may need to click the Refresh button to
see it.
- Right-click the template you want to apply, then select
New From Template.
The document opens in the Document window.
|