|
|
7.2 Create a basic templage
We can create a new template from scratch or we can turn an existing
HTML page into a template.
-
With an HTML file open in Dreamweaver, choose
File > Save As Template. Name this practice.
-
The new template appears in the Assets
panel.
Place your cursor where you want to create
an editable area. Choose
Insert > Template Objects
> Editable Region
Give the region a human readable name
that will make sense to you and the team
working on this site.
Click OK; save.
|
exercise
-
Define a new site
(if there is no workshop site)
-
Add a new folder called
template practice
-
Now download this file by right-clicking this link
and saving the file as "template_practice.html"
-
Make three areas of this document editable:
-- The title
-- The sub-menu
-- The main content
-
Use code view to see the commented areas which
have been named to reflect the above list.
|