getBaseTagData

Used within a custom tag. Finds calling (ancestor) tag by
name and accesses its data.

getBaseTagData(tagname [, instancenumber]) → returns any

getBaseTagData Argument Reference

tagname string
Required

instancenumber numeric

Examples sample code invoking the getBaseTagData function

This example shows the use of getBaseTagData function. Typically used in custom tags.

<cfif trim(inCustomTag) neq "">
<cfoutput>
Running in the context of a custom tag named #inCustomTag#.<p>
</cfoutput>
<!--- Get the tag instance data --->
<cfset tagData = getBaseTagData(inCustomTag)>
<!--- Find the tag's execution mode Located inside the --->
<cfif tagData.thisTag.executionMode neq 'inactive'>
template
<cfelse>
BODY
</cfif>

Fork me on GitHub