Name

cfmodule

Synopsis

<cfmodule>
  [<cfmodule />]
  ...
[</cfmodule>]

Provides an alternative method for calling CFML custom tags. Multiple cfmodule tags may be nested, provided each nested tag is closed using the syntax <cfmodule />.

Attributes

attributecollection=" attribute_structure "

The name of a ColdFusion structure containing attribute names and their associated values. Optional. If an attribute contained in the structure passed by attributecollection has the same name as an attribute passed in to the tag as a parameter, the one passed via attributecollection is used.

attribute n =" value "

Additional attributes and their associated values as required by the custom tag. Optional.

name=" name "

The name of the custom tag you want to use. The default location for custom-tag storage is \ cfroot \customtags. Custom tags residing in this location may be referenced with dotted notation. For example, a custom tag called MyCustomTag (MyCustomTag.cfm) residing in the default custom tags directory is referenced as MyCustomTag. The same tag residing under a subdirectory of the \customtags directory called \SpecialTags is referenced as SpecialTags.MyCustomTag. This dotted notation can reference custom tags residing in or any number of levels below the default customtags directory. Optional. If a value is specified for name, the template attribute isn’t used.

template=" template_path "

The path to the ColdFusion template to use as a custom tag. Relative paths are automatically expanded ...

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.