User Guide
210 Chapter 11: Tag Libraries and Editors
The following table lists the attributes of the ELEMENT tag, which represents the tag to insert:
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:
category.icon
Value is a relative path to an icon GIF. Optional
category.id
Any string that is different from the category.id
attributes of other categories in this file.
Mandatory
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)
Tag Description Mandatory/
Optional