CFLib.org – Common Function Library Project

GetBaseCustomTagList()

Last updated February 20, 2003

author

Jordan Clark

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
The custom list returned is based on the ancestor tag list provided by the getBaseTagList() function. This is useful to check in one custom tag if it is a decendant of another.

Return Values:
Returns a list.

Example:

<cfif listFindNoCase( getBaseCustomTagList(), "CF_MY_PARENT" )>
   I have a parent!
<cfelse>
   I'm an orphan, wha!
</cfif>

Parameters:

No arguments.

Full UDF Source:

/**
 * Returns a list of ancestor custom tags.
 * 
 * @return Returns a list. 
 * @author Jordan Clark (JordanClark@Telus.net) 
 * @version 1, February 20, 2003 
 */
function getBaseCustomTagList() {
   var x = 1;
   var customTags = "";
   var baseTags = listToArray( getBaseTagList() );
   
   for( x = 1; x LTE arrayLen( baseTags ); x = x + 1 )
   {
      if( left( baseTags[ x ], 3 ) IS "CF_" )
      {
         customTags = listAppend( customTags, baseTags[ x ] );
      }
   }
   
   return customTags;
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson