Specifications
Chapter 10114
For Windows NT platforms:
<drive>:\WinNT\profiles\<username>\ ¬
Application Data\Macromedia\Dreamweaver MX\Configuration
For Mac OS X platforms:
<drive>:Users:<username>:Library:Application Support: ¬
Macromedia:Dreamweaver MX:Configuration
If Dreamweaver MX cannot find TagLibraries.vtm in the user’s Configuration folder,
Dreamweaver looks for it 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 Dreamweaver parses the copy of TagLibraries.vtm in the user’s Configuration folder, not in the
Dreamweaver Configuration folder.
cfweather 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. It has a file pointer to the cfweather.vtm tag
definition file.
Creating a tag definition (.vtm) file
When a user selects a registered tag using the Tag Chooser or a tag editor, Dreamweaver looks for
a corresponding .vtm file for the tag definition.
To create a tag definition file:
1 In a text editor, create a file with the following contents:
<TAG NAME="cfweather" endtag="no">
<TAGFORMAT NLBEFORETAG="1" NLAFTERTAG="1"/>
<TAGDIALOG FILE="cfweather.htm"/>
<ATTRIBUTES>
<ATTRIB NAME="zip" TYPE="TEXT"/>
<ATTRIB NAME="tempaturescale" TYPE="ENUMERATED">
<ATTRIBOPTION VALUE="Celsius"/>
<ATTRIBOPTION VALUE="Fahrenheit"/>
</ATTRIB>
</ATTRIBUTES>
</TAG>
2
Save the file as Configuration/Taglibraries/CFML/cfweather.vtm.
Using the tag definition file, Dreamweaver can perform code hinting, code completion, and
tag formatting functionality for the
<cfweather> tag.