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. Template Tab
  3. Select Site
  4. Select Template to create
  5. "Create"
  6. Save File

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