Basic Idea of a Template

The idea behind a template, as we create earlier in class, is to make it easier to create additional pages. It should help:

However, the problem with using a "template" file, renaming it, and adding new content is that it will be difficult to add/remove new pages to the list.

A Dreamweaver Template

Advantages

Dreamweaver has a page type called a template. This works on the same principle as the templates we create, but it has a couple of advantages!

How to Make One

  1. Open your "template" file from before
  2. Choose the section which will change, delete any filler text
  3. Insert > Template Objects > Editiable Region
  4. Save - this will automatically save as a template

To Create File from Template

  1. File > New
  2. New Page from Template Tab (far left category)
  3. Select Site (the site you are in is selected by default)
  4. Select theTemplate to create the new page from (you should only have one choice in many cases)
  5. "Create"
  6. Save your File as an HTML document

Generally you should have only 1 template per site. 2 is acceptable in some cases, but rarely would you have more, unless you have a massive site with lots of different "areas".