beautypg.com

Create a tag definition (vtml) file, Create a tag editor ui – Adobe Extending Dreamweaver CS4 User Manual

Page 215

background image

209

EXTENDING DREAMWEAVER CS4

Tag libraries and editors

If Dreamweaver cannot find the TagLibraries.vtm file in the user Configuration folder, it searches for the file in the
Dreamweaver Configuration folder.

Note: On multiuser platforms, if you edit the copy of TagLibraries.vtm that resides in the Dreamweaver Configuration
folder, Dreamweaver is not aware of the changes. Dreamweaver parses the copy of the TagLibraries.vtm file in the user
Configuration folder, not the one in the Dreamweaver Configuration folder.

The

cfweather

tag is a ColdFusion tag, so an appropriate tag library group exists that you can use to register the

cfweather

tag.

1

Open the TagLibraries.vtm file in a text editor.

2

Scroll through the existing tag libraries to find the CFML tags.

3

Add a new tag reference element, as shown in the following example:

4

Save the file.

The tag is now registered in the tag library, and it has a file pointer to the cfweather.vtm tag definition file.

Create a tag definition (VTML) file

When a user selects a registered tag using the Tag Chooser or a tag editor, Dreamweaver searches for a corresponding
VTML file for the tag definition.

1

In a text editor, create a file with the following contents:




2

Save the cfweather.vtm file in the Configuration/TagLibraries/CFML folder.

Using the tag definition file, Dreamweaver can perform code hinting, code completion, and tag formatting
functionality for the

cfweather

tag.

Create a tag editor UI

1

Save the cfweather.htm file in the Configuration/TagLibraries/CFML folder:

This manual is related to the following products: