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).

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.

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