I did some digging in the Fusebox list archives and
found out that you cannot module in another fuse
without running into the double header/footer problem
with the standard CF_Bodycontent tag.
You need to modify your app_layout.cfm to look
something like this:
----------------app_layout.cfm-------------------------
<cfparam name="request.headerfile">
<cfparam name="request.footerfile">
<cfparam name="request.bodycontent">
<cfparam name="attributes.showbody" default="1">
<cfparam name="attributes.displaylayout" default="1">
<cfif attributes.displaylayout>
<cfif len(request.headerfile)>
<cfinclude template="#request.headerfile#">
</cfif>
<cfif attributes.showbody>
<cfoutput>#request.bodycontent#</cfoutput>
</cfif>
<cfif len(request.footerfile)>
<cfinclude template="#request.footerfile#">
</cfif>
<cfelse>
<cfif attributes.showbody>
<cfoutput>#request.bodycontent#</cfoutput>
</cfif>
</cfif>
-------------------------------------------------------
Then, when you cfmodule something in, ala:
<cfmodule
template="#request.site.webroot##request.section.webpath#index.cfm"
fa="nwrecentbox" displaylayout="0">
Your fuse will be moduled in with no layout. All you
will get back is the request.bodycontent var, which is
all that you need.
HTH,
Nate
--- Patrick McElhaney <[EMAIL PROTECTED]>
wrote:
> I just downloaded the CF_BodyContent files, and I
> don't
> see how this can be accomplished with the current
> code.
>
> If I have a circuit that writes some output, and
> calls
> another circuit that writes some output, I'll end up
> with my header and footer twice, and only the called
> circuit's output.
>
> I'm sure this has been covered before, but I'm
> bringing
> it up anyway because I'm convinced the tags
> currently
> posted on Fusebox.org have some room for
> improvement.
>
> Patrick
>
>
> > -----Original Message-----
> > From: Alan Walker
> [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 18, 2001 4:39 PM
> > To: Fusebox
> > Subject: Header and Footer showing twice with
> CF_Bodycontent and
> > app_layout.cfm
> >
> >
> > Hello Everyone,
> >
> > I'm putting together a web app using fusebox and
> my headers and
> > footers are
> > being duplicated when I use an include inside and
> include. Confused yet?
> > I've been reading the Fusebox book and looking on
> Fusebox.org but I can't
> > seem to get it right. Should I be referencing the
> second include in a
> > different way?
> >
> > Below is my code from index.cfm (I've just pasted
> in the relevant parts):
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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