Invokes a custom tag for use in CFML application pages.
This tag processes custom tag name conflicts.
<cfmodule>
cfmodule(template="nameoftemplate.cfm",attributeCollection={});
cfmodule name = "superduper.Forums40.GetUserOptions"
<cfmodule template="\layout\default\mainheader.cfm">
<cfmodule template="..\..\..\layout\register\sectionheader.cfm">
<cfmodule name="layout.corp.copyright">
<cfmodule template="\layout\default\mainheader.cfm" theme="default" pageTitle="Welcome!">
<cfset attrs = {theme = "default", pageTitle = "Welcome!"}>
<cfmodule template="\layout\default\mainheader.cfm" attributecollection="#attrs#">
In this example, the <p> tag and it's content will be available to super-duper-formatter.cfm to perform whatever the formatting logic dictates.
<cfmodule template="\layout\super-duper-formater.cfm">
<p>Some content the module will format</p>
</cfmodule>
In this example, show how to invoke using cfscript.
<cfscript>attrs = {theme = "default", pageTitle = "Welcome!"}>
cfmodule(template="myTemplate.cfm",attributeCollection="#attrCollection1#")</cfscript>
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.