• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 23. Building Reusable Components > Controlling Template Locations with ...

Controlling Template Locations with <cfmodule>

ColdFusion provides an alternative way to use custom tags in your templates that is helpful in a number of situations. Instead of calling your custom tags using the usual <cf_ prefix, you use the <cfmodule> tag. You don't need to change anything in the custom tag template itself. You can use any custom tag with either method.

Introducing the <cfmodule> Tag

The <cfmodule> tag executes a ColdFusion template as a module, which is just another name for a CFML custom tag. Basically, you specify which custom tag you want to use with the name or template attribute. Then you add whatever additional attributes you need to pass to the tag, just as you would if you were calling the module using the normal <cf_-style custom tag syntax.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint