Installing Custom Tags  
 
 

Custom tags are cfm files with a difference. They are created just like any other ColdFusion page, but they must be installed in a specific location to be accessible from the calling template. ColdFusion loads the first instance it finds of the custom tag called by a template, so avoid placing copies of a custom tag in different locations. Custom tags written in CFML are typically named using the CF_* convention to distinguish them from CFXs written in C/C++, which use the CFX_* convention.

 
 
  Local tags  
 
 

The ColdFusion engine responds to a request for a custom tag by first searching the directory of the calling template. This allows you to keep a custom tag file in the same directory as the page that uses it.

 
 
  Shared tags  
 
 

To share a custom tag among applications in multiple directories, place it in the Custom Tags folder under your ColdFusion installation directory. You can create sub-folders to organize custom tags -- ColdFusion searches recursively for the Custom Tags directory, stepping down through any existing subdirectories until the custom tag is found.



 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.