
270 Tag Libraries and Editors
The following table lists the attributes of the ELEMENT tag, which represents the tag to insert:
A simple example of creating a new tag
editor
The examples in this section use cfweather, a hypothetical ColdFusion tag designed to
extract the current temperature from a weather database, to illustrate the steps necessary to
create a new tag editor.
The attributes for the
cfweather tag are described in the following table:
You create this new tag editor by performing the following steps:
■ Registering the tag in the tag library
■ Creating a tag definition (VTML) file
■ Creating a tag editor UI
■ Adding a tag to Tag Chooser
Attribute Description Mandatory/
Optional
element.name
Value appears as a List view item. Mandatory
element.value
Value that is either placed directly into the code or
a parameter that passes into visual dialog boxes.
Mandatory
element.desc
Value is an HTML string and appears in the
incorporated Reference panel. If not specified, the
REFERENCE attribute displays reference content in
the incorporated Reference panel.
Optional
(
desc and
reference are
mutually
exclusive)
element.reference
As many as three strings separated by commas
that describes the language, topic, and subtopic
respectively. This information appears in the
Reference panel. The first string is mandatory. The
second string is mandatory for the
ELEMENT tag
only; optional for
CATEGORY and TCLIBRARY tags. The
third string is optional.
Optional
(
desc and
reference are
mutually
exclusive)
element.id
Any string that is different from the element.id
attributes of other elements in this file.
Optional
Attribute Description
zip
A five-digit ZIP code
tempaturescale
The temperature scale (Celsius or Farhenheit)
Comentários a estes Manuais