Adding a tag to Tag Chooser
To add the cfweather tag to the Tag Chooser:
Modify the TagChooser.xml file in the Configuration/Taglibraries/CFML folder by adding a
1
new category called Third Party Tags, which features the
following example:
<category name="Third Party Tags" icon="icons/Elements.gif"
reference='CFML'>
<element name="cfweather" value='cfweather zip=""
temperaturescale="fahrenheit">' />
</category>
Note: On multiuser platforms, the TagChooser.xml file also exists in the user's Configuration folder.
For more information regarding multiuser platforms, see the discussion in
tag library" on page
Verify the
2
cfweather
Select Insert > Tag.
Expand the CFML Tags group.
Select the Third Party Tags group that appears at the bottom of the Tag Chooser.
The
cfweather
Select cfweather, and click the Insert button.
The tag editor should appear.
Tag editor APIs
In order to create a new tag editor, you must provide an implementation for the
validateTag()
"Creating a tag editor UI" on page
inspectTag()
Availability
Dreamweaver MX.
Description
The function is called when the tag editor first appears. The function receives as an argument the
tag that the user is editing, which is expressed as a
values from the tag that is being edited and uses these values to initialize form elements in the
tag editor.
Arguments
tag
•
The
argument is the DOM node of the edited tag.
tag
Returns
Dreamweaver expects nothing.
214
Chapter 11: Tag Libraries and Editors
211.
tag now appears in the Tag Chooser by performing the following steps:
tag appears in the list box on the right.
, and
functions. For an example of an implementation, see
applyTag()
212.
cfweather
"Registering the tag in the
object. The function extracts attribute
dom
tag, as shown in the
inspectTag()
,
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?