View comments | RSS feed

Creating a Dreamweaver template

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 template's Design Notes.

To create a template:

  1. Open the document you want to save as a template:
  2. When the document opens, do one of the following:
  3. Select a site to save the template in from the Site pop-up menu, then enter a unique name for the template in the Save As text box.
  4. Click Save.

    Dreamweaver saves the template file in the site's 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.

To use the Assets panel to create a new template

  1. In the Assets panel (Window > Assets), select the Templates category on the left side of the panel.

    The Templates category of the Assets panel appears.

  2. Click the New Template button at the bottom of the Assets panel.

    A new, untitled template is added to the list of templates in the Assets panel.

  3. While the template is still selected, enter a name for the template, then press Enter (Windows) or Return (Macintosh).

    Dreamweaver creates a new blank template in the Assets panel and in the Templates folder.

Related topics


Comments


No screen name said on Apr 15, 2005 at 8:08 AM :
Is it possible to create editable regions for meta tags when using templates in Dreamweaver MX 2004?

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/mx2004/using/12_tem21.htm