getBaseTagData

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

getBaseTagData(tagname [, instancenumber]) → returns Object

getBaseTagData Argument Reference

tagname
Required

instancenumber

Examples sample code invoking the getBaseTagData function


Tag Syntax

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