Search
Register |  Sign In |  Sitemap |  Home Techvalley Host
 

 

Techvalley Host
Techvalley Host
Techvalley Host
 
One feature of ColdFusion is the ability to create a custom tag. A custom tag is a series of ColdFusion tags combined into one tag and called in a similar manner to normal ColdFusion tags. The custom tags are stored in a default location on the webserver and when called, the ColdFusion Administrator will look in this location for the file.  
Although we cannot give you direct access to the custom tag folder, you do have a few options if you wish to use a custom tag:  
 
 
 
Upload the custom tag file to your website's folder and contact us with the file name. We will move it to the custom tags folder for you. Please try to use a unique name.
 
Store the custom tag file in the same folder as the .cfm page that is calling the custom tag. If you are calling the custom tag from multiple folders in your website you will need to have a copy of the custom tag file in each directory.
 
Use the cfmodule tag to call the custom tag (see below)
 
Note: If you would like us to place the custom tag file in the server's custom tag folder you will need to use a unique name for the file, preferably one that contains part of your domain name. Creating a unique name prevents other customers from creating tags with a similar name.  
 
 
 
Using the cfmodule tag
 
template = "path"
attribute_name1 = "valuea"
attribute_name2 = "valueb"
...>
 
 Attribute    Req/Opt    Description
 
template   Required unless name attribute is used   Mutually exclusive with the name attribute. A path to the page that implements the tag.

* Relative path: expanded from the current page

* Absolute path: expanded using ColdFusion mapping
 
attribute_name   Optional   Attribute for a custom tag. You can include multiple instances of this attribute to specify the parameters of a custom tag.
 
 
For example, if you have a custom tag located in root websites folder called mytag-domainname.cfm that has two parameters (X and Y), you would call the tag in your code as follows:
 
 
The above information was taken from http://livedocs.macromedia.com/ For further information on cfmodule for ColdFusion MX 6.1 please visit http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-pb4.htm#wp1810047  


Techvalley Host Privacy Policy   |  Terms and Conditions
Website created and maintained by NSNA - a Bellingham Web Design company. Copyright © 2008 All Rights Reserved.