I do not think <cfoutput> carries over to any included file. So, you Can
have a pair of <cfoutput> tags nesting your included file, but this would
only be necessary if the file name itself was a variable:
<cfoutput>
<cfincude template="dsp_#variablepagename#">
</cfoutout> <!--- I am not saying this is a good idea --->
But, you absolutely must use the <cfoutput> tags within the included file if
you are calling a variable within it. As the outside <cfoutput> tags do not
carry over, you will not get a nested <cfoutput> error.
HTH,
-sutton
_____
From: Mickael [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 10:52 PM
To: CF-Talk
Subject: Just Wondering Why
Hello All,
Sorry if this is a novice question. I am trying to learn fusebox and find
my self making smaller templates and and more includes (which I guess is
good I haven't decided yet)
My question is this. Lets say that the value of myvariable is "house"
So when I do this
<cfoutput>
#myvariable#
</cfoutput>
I get an output of house
But when I do this
<cfoutput>
<cfinclude template="dsp_myvariablepage.cfm"> (dsp_myvariablepage.cfm's
content is #myvariable# )
</cfoutput>
I get #myvariable# instead of house. If include the template and the
content is #myvariable# would it not be in between the two cfoutputs once it
is included?
Sorry if this question is basic, just trying to understand it.
Thanks
Mike
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

