Chris don't you just want getBaseTagData("cf_ct1") ?  Remember that other CFML 
tags are returned in getBaseTagList(), so you may not be getting what you think 
in listGetAt(getBaseTagList(),2).

Steve, Chris can't use the caller scope to refer to the contents of a parent 
tag - the parent tag is called by the same scope as the current tag, for 
example:

<cfset x = 1>
<cf_ct1 y="2">
    <cf_ct2>
    </cf_ct2>
</cf_ct1>

When you're inside either custom tag caller.x = 1. But inside ct2.cfm you could 
also refer to getBaseTagData("cf_ct1").attributes.y.

Cheers,
Robin
                 
ROBIN HILLIARD
Chief Technology Officer
[email protected]

RocketBoots Pty Ltd
Level 11
189 Kent Street
Sydney NSW 2001
Australia
Phone +61 2 9323 2507
Facsimile +61 2 9323 2501
Mobile +61 418 414 341
www.rocketboots.com.au   
                 

On 09/03/2010, at 6:12 PM, Chris Velevitch wrote:

> I'm using CF7.02 and I'm trying to create a custom tag that will be
> self nested, like:-
> 
>     <cf_ct1>
>          <cf_ct2>
>               <cf_ct2>
>               </cf_ct2>
>          </cf_ct2>
>     </cf_ct1>
> 
> And in <cf_ct2>, I'm trying to get the data of the parent tag and
> assigning to a variable in the current tags state:-
> 
>     <cfset lvData=GetBaseTagData(ListGetAt(GetBaseTagList(),2))>
> 
> But the assignment creates a stack overflow and I don't understand why?
> 
> 
> 
> Chris
> --
> Chris Velevitch
> Manager - Adobe Platform Users Group, Sydney
> m: 0415 469 095
> www.apugs.org.au
> 
> Adobe Platform Users Group, Sydney
> March 2010: ColdFusion Application Architecture for the Impatient and
> Using jQuery when Flash is Overkill
> Date: 29nd Mar 6pm for 6:30 start
> Details and RVSP on http://groups.adobe.com/posts/148c9056a4
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "cfaussie" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/cfaussie?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to