TEMPLATE VARIABLES
The replacement of fields in templates use a modified form of the HTML tag:<$variable>. WebSite Director (WSD) uses document-related information, and directory-related information associated with the current document or directory, and replaces the variables with the appropriate information. If no information is available for a variable, WSD suppresses the associated text in the template.
<$if $variable> normal HTML text <$endif>
<$if $variable> normal HTML text <$else> normal HTML text <$endif>
<$ifnot $variable> normal HTML text <$endif>
<$ifnot $variable> normal HTML text <$else> normal HTML text <$endif>
Template Variables
The following is a list of variables for Page Layout Templates.
VARIABLE | DESCRIPTION | ORIGINATES FROM: | |
<$filename> | Document Filename | Properties screen | |
<$fname> | Document Filename without path | Properties screen | |
<$author> | Author | Assigned on Properties screen from list of authorized users | |
<$authorname> | Author's First and Last Name | Assigned on Properties screen from list of authorized users | |
<$title> | Document Title | Properties screen | |
<$description> | Document Description | Properties screen | |
<$currdate> | Current Date | Database information | |
<$dir> | Directory Path | Properties screen | |
<$dirname> | Directory Name without full path | Properties screen | |
<$dirdesc> | Directory Description | Maintained on Directory Maintenance screens | |
<$include filename> | Include up to 10 levels deep. Template commands processed in included template | Template information | |
filename |
The filename specified in this tag can
be either a local filename (i.e., no path included), or a full path and filename.
|
Page Layout Attributes
EDIT - A single-line edit field, useful for titles, bylines, and other short amounts of text.TEXTAREA - A multi-line edit field that can be used for any kind of content.
HTMLEDIT - A multi-line edit field that uses any of the WSD WYSIWYG control when the user is using Microsoft Internet Explorer 4.0 or later and JavaScript is enabled. If both of those conditions are not met, this field operates exactly like a TEXTAREA field.
IMAGE - A selection list of images from a defined location on the web server. The selected image is placed within an IMG tag for display.
type - Field type, one of EDIT, TEXTAREA, HTMLEDIT, or IMAGE
name - Field name, a unique identifier used to associate the template tag with the form field on the screen.
prompt - Field prompt for the form field on the screen.
width - Width of the EDIT or TEXTAREA form field in characters. Also used in the HTMLEDIT field to specify the field width when a WSD WYSIWYG control is not used. The value can also be the special word "PREFWIDTH", which will assign the user's Edit Online Number of Columns User Preference as the field width.
height - Height of the TEXTAREA form field in lines. Also used in the HTMLEDIT field to specify the field height when a WSD WYSIWYG control is not used. The value can also be the special word "PREFHEIGHT", which will assign the user's Edit Online Number of Rows User Preference as the field height.
pixelwidth - Width of a WSD WYSIWYG control in pixels or percentage. When stated as a percentage (i.e. "100%"), it represents a percentage of the width of the browser window.
pixelheight - Height of a WSD WYSIWYG control in pixels or percentage. When stated as a percentage (i.e. "20%"), it represents a percentage of the height of the browser window.
wrap - Line wrap setting, one of OFF, SOFT, or HARD. Specifies how line wrapping occurs within TEXTAREA fields. If no wrap setting is specified, the default is OFF. With the OFF setting, no line wrapping occurs, the user has to manually use the Enter key to start a new line. With the SOFT setting, input will wrap visibly within the edit field, but only explicit line feeds added via the Enter key will end up in the stored content. With the HARD setting, all lines will wrap at the visible edge of the edit field, and the stored content will contain line feeds at those locations.
imagedir - A list of one or more directories or reserved words on the server under the Document Root. Reserved words are $sysdir and $propdir where $sysdir represents the directory name for images as defined on the System Configuration screen, and $propdir represents the name of the directory defined for images on the Directory Properties screen for the current directory. WSD will create a list of all images for all directories in the list, removing duplicate images. The final list of images will be listed in the IMAGE field, or in a WSD WYSIWYG control Insert Image screen for an HTMLEDIT field.
editliveflags= - For the EditLive! WYSIWYG Editor - an integer value that consists of the sum of one or more of the values identifying which toolbar buttons are available to the user (see table below). If editliveflags is not present, all of the toolbar buttons are enabled.
1 Enable Font Color Button 2 Enable Font Size Menu 4 Enable Page Properties Menu Item 8 Enable Tables Button 16 Enable Underline Button 32 Enable Horizontal Rule Button 64 Enable Anchor Button
![]() |
5714-B Industry Lane, Frederick,
Maryland 21704 USA |