Getbasetaglist - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

354

GetBaseTagList

Returns a comma-delimited list of uppercase ancestor tag names. The first element of
the list is the parent tag. If you call this function for a top-level tag, it returns an empty
string.
See also GetBaseTagData.
Syntax
GetBaseTagList()
Example
<!--- This example illustrates usage of the GetBaseTagList
function. This is typically used in custom tags. --->
...
<CFIF thisTag.executionMode is "start">
<!--- Get the tag context stack
<CFSET ancestorList = GetBaseTagList()>
<!--- Output current tag name --->
<CFOUTPUT>This is custom tag #ListGetAt(ancestorList,2)#</CFOUTPUT>
<P>
<!--- Determine whether this is nested inside a loop --->
<CFSET inLoop = ListFindNoCase(ancestorList, "CFLoop")>
<CFIF inLoop neq 0>
</CFIF>
...
The list will look something like "CFIF,MYTAGNAME..." --->
Running in the context of a CFLoop tag.
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents