Managing Custom Tags  
 
 

If you deploy custom tags in a multi-developer environment or distribute your tags publicly, you may want to make use of two additional ColdFusion capabilities:

 
 
  Resolving file name conflicts  
 
 

To avoid errors caused by duplicate custom tag file names, use the CFMODULE tag in the calling template. Note that only one of the required attributes can be used in a given instance of the tag:

CFMODULE Attributes
Attribute
Description  
Template
Required. Specifies a relative path to the cfm file. Same as Template attribute in <CFINCLUDE>.
Example: <CFMODULE TEMPLATE="../MyTag.cfm"> identifies a custom tag file in the parent directory.
Name
Required if Template attribute is not used. Use period -separated names to uniquely identify a sub-directory under the Custom Tags root directory.
Example: <CFMODULE NAME="Allaire.Alive.GetUserOptions"> identifies the file GetUserOptions.cfm in Custom Tags\Allaire.Alive directory under the ColdFusion root directory.
Attributes
Optional. You can list the custom tag's attributes.



 
 
BackUp LevelNext
 
 

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