Layout Templates
WebSite Director (WSD) Page Layout Templates allow users with no knowledge of HTML to populate web pages that have a pre-defined format. These templates allow you to specify which portions of a document can be created/edited.
Published pages will be comprised of the HTML code defined by the template designer/developer and the content that the user enters into the specified template areas. Page Layout Templates can contain any WSD Template Language elements plus HTML, XML, and Dynamic Server-specific variables that are compatible with the installed environment.
Template fields
With template fields, specific areas of a document can be updated by providing content in various types of form elements.
| Template field | What it does |
|---|---|
| EDIT | Defines a single-line edit field. Useful for titles, bylines, and other short amounts of text. |
| TEXTAREA | Defines a multi-line edit field that can be used for entering any kind of content. |
| HTMLEDIT | Defines a multi-line edit field that uses a WYSIWYG controls. |
| IMAGE | Defines a control which allows the content contributor to enter/select the location of any image within the document root of the file system. |
| HYPERLINK | Defines a control which allows the content contributor to enter/select the location of any type of content that has been published within the document root of the file system. |
| CUSTOM | Custom defined template field (for developers). |
Template variables
WSD supports two types of template variables:
- property values
- field values
Properties include document properties, directory properties, and local properties. Field values consist of the content entered into a layout template field. Template property variables can refer to a "substring" of a property value.
The $setproperty template command creates temporary local properties that can be used during template processing. Properties set using this template command are available as standard properties to any other template language tag following the $setproperty command in the current template.
Template conditionals
Content can be selectively generated inside a WSD template through the use of template conditional tags. These template language tags support all of the standard variants of the traditional "if" conditional tests available in any programming or scripting language.
Include and re-use content
WebSite Director templates can also include property and field values from other documents by using $reference template tags. The $reference tags are composed of two parts: the "source" part that specifies from which document WSD will retrieve the property or field, and the "element" part that specifies from which property or field the value will be retrieved.
The $include command copies the contents of another file into the document at the location of the $include command.
The $href command is used in a similar fashion to the $include command, but instead of loading content from a local file on the web server, it instead retrieves content from a URL on either the local web server or a remote web server.
Give it a try
To see a Page Layout Template in action please use our try-it demo function, or request access to our demo sites or request an evaluation license to create your own templates.
How to build Page Layout Templates
Please refer to the online tutorial or contact us for a free personal demonstration with one of our technicians.
Case Studies
Volvo Ocean Race
Their implementation of a Hybrid Dynamic/Static web site in 2001-2002 was able to support a maximum of 21 million hits per day.
case study





