I'd just replace the includes with their contents. Not as elegant, I guess,
but sometimes you just do what works.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: Les Mizzell [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, July 15, 2003 11:59 AM
: To: CF-Talk
: Subject: RE: Includes inside a CFOUTPUT problem...
:
:
: :: I don;t think the <cfoutput> is inherited by the <cfinclude>
: :: templates from
: :: the calling template, so you'll need to put <cfoutput> in each of the
: :: include templates where you want to output a variable.
:
: This will take some head scratching to get to work. Each include
: is a single
: "td". Basically, I'm building a table in my switch statement. So, it's
: still got to loop through all the records and properly build the table.
: Different results will result in a completely different table.
:
: Jezz, I may have painted myself into a corner at this point if there's no
: good way to get it to work.
:
: Ideas???
:
:
:
:
: :: -----Original Message-----
: :: From: A.Little [mailto:[EMAIL PROTECTED]
: :: Sent: Tuesday, July 15, 2003 11:49 AM
: :: To: CF-Talk
: :: Subject: RE: Includes inside a CFOUTPUT problem...
: ::
: ::
:
: ::
: :: Don't ask me why it works like this - I have no idea ;-)
: ::
: :: Alex
: ::
: ::
: :: > -----Original Message-----
: :: > From: Les Mizzell [mailto:[EMAIL PROTECTED]
: :: > Sent: 15 July 2003 16:38
: :: > To: CF-Talk
: :: > Subject: RE: Includes inside a CFOUTPUT problem...
: :: >
: :: >
: :: > :: What about
: :: > :: <td>#prods.some_variable#</td>
: :: > :: in the includes ?
: :: > :: That's better syntax anyway...
: :: >
: :: >
: :: > Nope, still doesn't do it....
: :: >
: :: > Hmmmm.........
: :: >
: :: >
: :: > Re:
: :: > <cfoutput query="prods">
: :: > <tr>
: :: > <cfswitch expression="#URL.ID#">
: :: > <cfcase value="100">
: :: > <cfinclude template="includes/td_1.cfm">
: :: > <cfinclude template="includes/td_14.cfm">
: :: > <cfinclude template="includes/td_22.cfm">
: :: > </cfcase>
: :: > <cfcase value="110">
: :: > <cfinclude template="includes/td_33.cfm">
: :: > <cfinclude template="includes/td_34.cfm">
: :: > <cfinclude template="includes/td_35.cfm">
: :: > </cfcase>
: :: > </cfswitch>
: :: > </tr>
: :: > </cfoutput>
: :: >
: ::
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4