Templates are used to create a standard layout for your website.
We need
some sample data to work with. Dpwnload this sample
file and unzip the
contents.
Use this
link to download if you are in Singapore.
Creating a Template
1) Create a new page in Dreamweaver. (Do not name it as of yet)
2) Open this page. From file menu choose File -> Save as Template. (Give
it some name something like -mytemplate). Dreamweaver will create a "Templates" folder
and place your template file there. Template files have .dwt as their extension.
3) Insert your graphics and text. These graphics and text are the elements
that you want to see in all your pages.
4) Your page will need some areas where you need to type or insert that page
specific graphics or text. These areas are called "Editable Regions".
You can insert an Editable Region by choosing Modify -> Editable Region
.
5. Save the File.
To create layouts on you page refer to this article on macromedia website
Creating new pages using the template.
1) From the file menu choose File -> New From Template . Dreamweaver will
let you choose the template you want to use . Once you click on the "OK" button
the new file appears with your layout.
Applying a template to an existing file.
1) Open your existing file.
2) Modify -> Templates -> Apply Template to Page . Dreamweaver will let
you choose the template that you want to use . Once you click on the "OK" button
the file will show up with your layout.
