Creating a Dreamweaver Template
You can create a template from an existing document (such as an HTML, Macromedia ColdFusion, or Microsoft Active Server Pages document) or you can create a template from a new, blank document.
After you create a template, you can insert template regions. You can also set template preferences for code coloring and template region highlight color.
An editable region is an unlocked region in a template-based
document--a section a template user can edit. A template author can specify any
area of a template as editable. For a template to be effective,
it should contain at least one editable region; otherwise, pages based on the
template can’t be edited.
A repeating region is a section of the layout in a document
that is set to repeat. For example, you can set a table row to repeat. Usually
repeating sections are editable so that the template user can edit the content
in the repeating element, while the design itself is under the control of the
template author. The template user uses repeat region control options to add or
delete copies of the repeated region in a document based on the template as
necessary.
There are two types of repeating
regions you can insert in a template: repeating region and repeating table.
An optional region is a section of a template that you
specify as optional, to hold content such as optional text or an image that may
or may not appear in a document based on the template. In the template-based
page, the template user usually controls whether the content is displayed.
An editable tag attribute lets you unlock a tag attribute in a
template, so the attribute can be edited in a template-based page. For example,
you can "lock" which image appears in the document but let the
template user set the alignment to left, right, or center.
Before you insert an editable
region, you should save the document you are working in as a template.
Note: If you insert an editable region in a
document rather than a template file, Dreamweaver warns you that the document
will automatically be saved as a template.
You can place an editable region
anywhere in your page, but consider the following if you are making a table or
a layer editable:
<td> tag is selected, the editable region
includes the region around the cell; if not, the editable region affects
only content inside the cell. You can use the Property
inspector to link to a particular section of a document by first creating named
anchors. Named anchors let you set markers in a document, which are often
placed at a specific topic or at the top of a document. You can then create
links to these named anchors, which quickly take your visitor to the specified
position.
Creating a link to a named anchor
is a two-step process. First, you create a named anchor; then you create a link
to the named anchor.
The
Named Anchor dialog box appears.
3.
In the Anchor Name text box, type a name
for the anchor, and click OK.
For more
information, see
The
anchor marker appears at the insertion point.
Note:
If you do not see the
anchor marker, select View > Visual Aids > Invisible Elements.
Note:
Anchor names are
case-sensitive.
Note:
If you don’t see the
anchor, select View > Visual Aids > Invisible Elements to make it
visible.
Informatin based on Using Dreamweaver Copyright © 1997-2003 Macromedia, Inc. All rights reserved
![]()