Can you give some example code?  Are you using <cfinclude> or
<cfmodule>?  What attributes are the tags expecting?  Sounds like you're
just not passing the expected attributes. From what it sounds like,
you'd want to do something like this:

PARENT TAG
<cfoutput query="foo">
<cfmodule template="child1.cfm" variable1="#var1#">
<cfmodule template="child2.cfm" variable2="#var2#">
<cfmodule template="child3.cfm" variable3="#var3#">
</cfoutput>

CHILD1
<cfquery datasource="#dsn#">
update tables
set var1=#attributes.var1#
</cfquery

CHILD2
<cfquery datasource="#dsn#">
update tables
set var2 = #attributes.var2#
</cfquery>

CHILD3
<cfquery datasource="#dsn#">
update tables
set var3 = #attributes.var3#
</cfquery>

John Burns

-----Original Message-----
From: Jennifer Knoblock [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:34 PM
To: CF-Talk
Subject: nesting custom tags

I have a custom tags that calls other custom tags they are work
individually, but I need some help getting them to work altogether.

Ideally, the parent tag  runs a query and loops over the other three
child tags and fills in their attribute values with results from the
query. The child tags run their update queries and return to the parent
tags that then doe sthe final arithmetic and returns a value to the
calling page.

But, my child tags won't run. It says the attribute is undefined.

What am I missing?

My server is running CF 4.5, so CFCs and UDFs are not an option.
Thanks!
Jen
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to