Why doesn't this work?
<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>
Assume the include "td_1.cfm" and the others, in their entirety, is simply
like:
<td>#some_variable#</td>
The scope of the CFOUTPUT tag doesn't extend down into the includes - so the
variables aren't outputting....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4