Remove the cfparam and move the cf_associate to the end portion of child. Here is my child.cfm:
<cfset LocalContent = ThisTag.GeneratedContent> <cfset ThisTag.GeneratedContent = ""> <cfswitch expression="#ThisTag.ExecutionMode#"> <cfcase value="Start"> <cfif NOT ThisTag.HasEndTag> <cfabort showerror="This tag requires a closing tag"> </cfif> </cfcase> <cfcase value="End"> <cfassociate baseTag="cf_parent"> <!--- TAKE TEXT BETWEEN THE TAGS AND PUT IT INTO A DIV STORED AS AN ATTRIBUTE VARIABLE ---> <cfsavecontent variable="Attributes.childData"> <div> <cfoutput> #LocalContent# </cfoutput> </div> </cfsavecontent> </cfcase> </cfswitch> On Thu, Dec 11, 2008 at 6:09 PM, Dave Watts <dwa...@figleaf.com> wrote: >> I've got a problem I've never run into before with nested custom tags. I'm >> using nested >> paired tags: >> >> <cf_parent> >> <cf_child> >> ...some text here >> </cf_child> >> >> <cf_child> >> ...more text >> </cf_child> >> </cf_parent> >> >> When I dump #ThisTag# all the AssocAttribs are doubled. I belive I'm taking >> steps to >> prevent this but here is some code to look over: > > I don't think you can do anything to prevent that. For each child tag > executed, you will get an entry in AssocAttribs. If you have an > opening and closing child tag, that's executing twice, and you will > get two entries. > > If you know that you're going to get two entries per child, just > disregard every other entry. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316684 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4