
471
Tem pl at es
Last updated 6/3/2015
The following is an example of the code you might enter in the head section of the template:
<!-- TemplateParam name="Dept" type="number" value="1" -->
The following condition statement checks the value assigned to the Dept parameter. When the condition is true or
matches, the appropriate image is displayed.
<!-- TemplateBeginMultipleIf -->
<!-- checks value of Dept and shows appropriate image-->
<!-- TemplateBeginIfClause cond="Dept == 1" --> <img src=".../sales.gif"></img> <!--
TemplateEndIfClause -->
<!-- TemplateBeginIfClause cond="Dept == 2" --> <img src=".../support.gif"></img> <!--
TemplateEndIfClause-->
<!-- TemplateBeginIfClause cond="Dept == 3" --> <img src=".../hr.gif"></img> <!--
TemplateEndIfClause -->
<!-- TemplateBeginIfClause cond="Dept != 3" --> <img src=".../spacer.gif"></img> <!--
TemplateEndIfClause -->
<!-- TemplateEndMultipleIf -->
When you create a template-based document, the template parameters are automatically passed to it. The template user
determines which image to display.
More Help topics
Managing assets and libraries
Creating a Dreamweaver template
Editing content in a template-baseddocument
Creating editable regions intemplates
Creating repeating regions in templates
Using optional regions in templates
Defining editable tag attributes in templates
Link to documents using the Point-To-File icon
Document-relative paths
Using optional regions in templates
Defining editable tag attributesin templates
Modify template properties
Recognizing templates and template-based documents
Note: The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the
options described in this article in Dreamweaver CC and later. For more information, see
this article.
Recognizing templates in Design view
In Design view, editable regions appear in the Document window surrounded by rectangular outlines in a preset
highlight color. A small tab appears at the upper-left corner of each region, showing the name of the region.
Kommentare zu diesen Handbüchern