ColdFusion Tutorial

Controlling Template Locations with CFMODULE (Custom Tags)

 

ColdFusion provides an alternative way to use custom tags in your templates, which is helpful in a number of situations. Instead of calling your custom tags using the usual <CF_prefix, you can use the <CFMODULE> tag. You don't need to change anything in your tag template itself. Any custom tag can be used with either method.
ColdFusion will not automatically look for the tag in the special CustmTags folder because you are specifying the location explicitly. So, instead of using <CF_yourtag> in your code, you might use <CFMODULE> with template="yourtag.cfm".

Example code:

<!--- Update customer --->
<CF_ yourtag
Action="Update"
Customer_ID="4">

To call the tag with <CFMODULE>, you would use the following code:

<!--- Update customer --->
<CFMODULE
NAME="yourtag"
Action="Update"
Customer_ID="4">

ColdFusion Tutorial test

Controlling Template Locations with CFMODULE (Custom Tags)

No test is available or implemented for this ColdFusion Tutorial.

No User Comments.

No User Comments, be the first one to write your comments?

Add your comments

Your Name*:
Your Email:
Site URL:
Site Name:
Comemt Title*:
Your Comment*:
Key Phrase*:
8Oc
Your IP Address: 38.103.63.62
 

ScandicWeb is own by Scandic Systems LTD [UK] Company No. 5984000. All other trademarks and copyrights are the property of their respective holders.

[Home [Site Map [Privacy Statement [Site Feedback] [About ScandicWeb]


[ColdFusion [Flash [Search Engine Optimization [Graphics [Cascading Style Sheets (CSS) [JavaScript (JS) [Software]

Partner sites: ScandicSoft


Server time: 19. November 2008 Wednesday