Whatever message this page gives is out now! Go check it out!
GetBaseTagList(caller)Parameter | Description |
caller | The parameter lets you specify whether to get the base tags from the current template or the parent caller context. |
<!--- This example shows the use of GetBaseTagList function. Typically used in custom tags. ---> <cfif thisTag.executionMode is "start"> <!--- Get the tag context stack The list will look something like "CFIF,MYTAGNAME..." ---> <cfset ancestorList = GetBaseTagList()> <br><br>Dump of GetBaseTagList output:<br> <cfdump var="#ancestorList#"><br><br> <!--- Output current tag name ---> <cfoutput>This is custom tag#ListGetAt(ancestorList,1)#</cfoutput><br> <!--- Determine whether this is nested inside a loop ---> <cfset inLoop = ListFindNoCase(ancestorList, "cfloop")> <cfif inLoop> Running in the context of a cfloop tag.<br> </cfif> </cfif> |