
A simple example of creating a new tag editor 271
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\Macromedia\Dreamweaver 8\Configuration
For Mac OS X platforms:
<drive>:Users:<username>:Library:Application Support: ¬
Macromedia:Dreamweaver 8: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.
The
cfweather tag is a ColdFusion tag, so an appropriate tag library group already exists that
you can use to register the
cfweather tag.
To register the tag:
1. Open the TagLibraries.vtm file in a text editor.
2. Scroll through the existing tag libraries to find the CFML tags taglibrary group.
3. Add a new tag reference element, as shown in the following example:
<tagref name="cfweather" file="cfml/cfweather.vtm"/>
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.
NOTE
In Windows XP, this folder may be inside a hidden 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.
Kommentare zu diesen Handbüchern