> I'm not sure what sendapprequest is...
Jason,
It was one of the fuseactions you used as an example:
<cfcase value="sendapprequest">
<cfset attributes.headerfile = ''>
<cfset attributes.sidebarfile = ''>
<cfinclude template="ACT/act_sendapprequest.cfm">
<cflocation url="index.cfm?fuseaction=msg&msg=#msg#">
</cfcase>
> So, my question is, how can I include a piece of code (say the login box)
> ANYWHERE without getting this effect. Somehow turn off the app_layout?
> call the file directly??
At least a couple different ways.
(1) Simply include the dsp_login in as many fuses as necessary... like qry_
files, they're designed to be reused. Using your latest example:
<cfcase value="home">
<cfinclude template="dsp/dsp_home.cfm">
<cfinclude template="dsp/dsp_login.cfm">
</cfcase>
(2) If you need the dsp_login to show up in the middle of dsp_whatever, wrap
dsp_login in a named cf_bodycontent and use the resulting variable:
<cfcase value="home">
<cf_bodycontent name="body_login">
<cfinclude template="dsp/dsp_login.cfm">
</cf_bodycontent>
<cfinclude template="dsp/dsp_home.cfm">
</cfcase>
... with the following somewhere in dsp_home:
<cfoutput>#body_login#</cfoutput>
OTOH, if all you really need is to turn off the app_layout stuff, just make
sure you pass in empty header/footer variables, and then have app_layout
check Len(headerfile) before displaying the relevant bit of code.
--
Roger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists