MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual page 196

Table of Contents

Advertisement

178
Variables passed to the layout template
The value of each control of the tag editor is passed to the template using a variable
with the same name, for example, a ColorPicker control named
pass its value in a
data to generate the tag string.
<taglayout>
<mytag color="$${colorBGColor}">
</taglayout>
This example shows a simple layout template for a hypothetical tag with a single
attribute,
user selects White in the
this tag:
<mytag color="White">
Special variables
In addition to the control variables, a few other parameters get sent to the
template:
OPTIONLowerCaseTags Returns true or false. Specifies whether the tag should
be generated using lowercase.
EDITORTagIndentString Maintains indentation for tag attributes and body.
OPTIONLinearLayout Returns true or false. Specifies whether the tag should be
generated with its attributes in a single line or not.
TAGDATAUnknownAttributes A string containing all attributes which were
contained in the edited tag string but are not recognized by the editor.
Using OPTIONLowerCaseTags
You can use this parameter to create a layout template, which generates a tag in
lower or upper case based on user preferences. Here is a version of the mytag layout
template responding to case preferences:
<taglayout>
<WIZIF OPTIONLowerCaseTags EQ 'true'>
<mytag color="$${colorBGColor}">
<WIZELSE>
<mytag COLOR="$${colorBGColor}">
</WIZIF>
</taglayout>
Maintaining tag indentation
The variable
currently selected tag. If the start tag is indented using tabs and characters, the string
is represented as the corresponding combination of tabs and spaces. This variable
can be used to correctly indent tag attributes, as well as tag body contents for tags
which are already indented.
Chapter 13 Customizing the Development Environment
variable. The
colorBGColor
. Notice that variables are embedded using the $${} delimiters. If the
color
colorBGColor
EditorTagIndentString
template can then use this
taglayout
ColorPicker control, the template generates
contains an indentation string for the
will
colorBGColor
taglayout

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents