Adobe 38040334 - Dreamweaver CS3 User Manual page 210

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Registering the tag in the tag library
For Dreamweaver to recognize the new tag, it must be identified in the TagLibraries.vtm file, which is located in the
Configuration/TagLibraries folder. However, if the user is on multiuser platform (such as Windows XP,
Windows 2000, Windows NT, or Mac OS X), the user has another TagLibraries.vtm file in their user Configuration
folder. This file is the one that needs to be updated because this file is the instance that Dreamweaver searches for
and parses.
The location of the user's Configuration folder depends on the user's platform.
For Windows 2000 and Windows XP platforms:
<drive>:\Documents and Settings\<username>\Application Data\Adobe\¬
Dreamweaver 9\Configuration
Note: In Windows XP, this folder may be inside a hidden folder.
For Mac OS X platforms:
<drive>:Users:<username>:Library:Application Support:Adobe:¬
Dreamweaver 9:Configuration
If Dreamweaver cannot find the TagLibraries.vtm file in the user's 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 and not the one located in the user's configuration folder, Dreamweaver is not aware of the changes because it
parses the copy of the TagLibraries.vtm file in the user's Configuration folder, not the one in the Dreamweaver
Configuration folder.
The
tag is a ColdFusion tag, so an appropriate tag library group already exists that you can use to register
cfweather
the
tag.
cfweather
To register the tag:
Open the TagLibraries.vtm file in a text editor.
1
Scroll through the existing tag libraries to find the CFML tags
2
3
Add a new tag reference element, as shown in the following example:
<tagref name="cfweather" file="cfml/cfweather.vtm"/>
Save the file.
4
The tag is now registered in the tag library, and it has a file pointer to the cfweather.vtm tag definition file.
Creating 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.
To create a tag definition file:
1
In a text editor, create a file with the following contents:
group.
taglibrary
DREAMWEAVER CS3
204
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents