I haven't tested this, but I'd imagine that the CURRENT tag is on the
tag stack (as it is with exceptions).  Since getBaseTagData operates
on names rather than offsets/indexes, it's going to match the current
tag, and then return it's own data.  So lvData is pointing at one of
it's own scopes, which then has to be copied into lvData, and well you
can see the problem.

However, getBaseTagData accepts an optional second parameter for how
many matches it should find before returning, simply moving the ", 2"
to the right by one parenthesis will probably solve your problem.
Again, I haven't actually tested, but that's what I'd try first.

cheers,
barneyb

On Mon, Mar 8, 2010 at 11:12 PM, Chris Velevitch
<[email protected]> 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
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331455
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to