Whatever message this page gives is out now! Go check it out!
Variable | Description |
ExecutionMode | Contains the execution mode of the custom tag. Valid values are "start", "end", and "inactive". |
{{HasEndTag }} | Distinguishes between custom tags that are called with and without end tags. Used for code validation. If the user specifies an end tag, HasEndTag is set to true; otherwise, it is set to false. |
GeneratedContent | Specifies the content that the tag generates. This content includes anything in the body of the tag, including the results of any active content, such as ColdFusion variables and functions. You can process this content as a variable. |
{{AssocAttribs }} | Contains the attributes of all nested tags if you use cfassociate to make them available to the parent tags. For more information, see High-level data exchange in Nesting custom tags. |
<cfif thisTag.ExecutionMode is 'start'><cf_date>...
</cf_date><cf_date/>...
</cfmodule><!--- Abort the tag--->
<cfabort showError="An end tag is required.">
</cfif><!--- Start tag processing --->
<B>
<cfelse>
<!--- End tag processing --->
</B>
</cfif><cf_bold>This is bold text</cf_bold><cfcase value= 'start'>
<!--- Start tag processing --->
</cfcase>
<cfcase value='end'>
<!--- End tag processing --->
</cfcase>
</cfswitch><p> Happy Birthday Ellen!</p>
<p> May you have many more!</p>
</cf_happybirthdayMessge><cfset thisTag.GeneratedContent ='<!--#thisTag.GeneratedContent#-->'>
</cfif>Method attribute value | Location of cfexit call | Behavior |
ExitTag (default) | Base page | Acts like cfabort |
ExecutionMode=start | Continue after end tag | |
ExecutionMode=end | Continue after end tag | |
ExitTemplate | Base page | Acts like cfabort |
ExecutionMode=start | Continue from first child in body | |
ExecutionMode=end | Continue after end tag | |
Loop | Base page | Error |
ExecutionMode=start | Error | |
ExecutionMode=end | Continue from first child in body |