Creating Templates in Dreamweaver

Templates

  • Templates allow you to have regions that are constant from page to page like menu links, banners, images, or other design elements. For example in these pages, I created a template that allows me to change the Introduction to Dreamweaver logo and the background green-blue stripe background. I can then change the look of the page by simply changing the template and applying it to all of the pages in seconds. (See the diagram below).

  • To Create a Template using an existing web page
    1. Open a page that you want to serve as a template
    2. Choose File > Save as Template
  • To Create a New Blank Template
    1. Choose Window > Templates
    2. In the Template palette, do one of the following
    • Select New Template from the Context menu
    • Click the New Template icon in the lower right area of the template window
    • In the Template plaette list, right-click(PC) or Control-click (Mac) and select New Template from the context menu
    1. Enter a name for the template
  • Define the editable regions of the page - variables
    1. Select the content/objects that you want to vary
    2. Choose Modify > Templates> Mare Selection as Editable (either an area of text, a cell, or an entire table, but not multiple cells simultaneously)
    3. In the New Editable Region dialog box, enter a name for the region
  • To Create a New Document based on a template
    • Choose File > New From Template
    • Choose File > New and then drag the template icon from the Template Palette onto the new blank document
  • To apply a template to an existing document
    • Choose Modify > Templates > Apply Template to Page and select the template you wish to apply
    • Drag the template icon from the Template Palette onto the new blank document
    • Select the template in the Template palette, and click Appl to Page

Template Palette

Window Menu