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):
----------------------------------------------------------------
<cfinclude template="../app_globals.cfm">
<cfparam name="request.folderroot" default="broker">
<CFPARAM name="request.showmenu" default="no">
<cfparam name="attributes.fuseaction" default="">
<CF_BODYCONTENT>
<cfswitch expression="#attributes.fuseaction#">
<!--Login Confirm-->
<CFCASE value="LoginConfirm">
<CFSET #request.showmenu# = "yes">
<CFINCLUDE template="dsp_loginconfirm.cfm">
</CFCASE>
<CFCASE value="ViewAll">
<CFINCLUDE template="qry_viewall.cfm">
<CFINCLUDE template="dsp_viewall.cfm">
</CFCASE>
<cfdefaultcase>
<CFINCLUDE template="dsp_loginform.htm">
</cfdefaultcase>
</cfswitch>
</CF_BODYCONTENT>
<CFINCLUDE template="../app_layout.cfm">
<cfinclude template="../app_globals.cfm">
<cfparam name="request.folderroot" default="broker">
<CFPARAM name="request.showmenu" default="no">
<cfparam name="attributes.fuseaction" default="">
<CF_BODYCONTENT>
<cfswitch expression="#attributes.fuseaction#">
<!--Login Confirm-->
<CFCASE value="LoginConfirm">
<CFSET #request.showmenu# = "yes">
<CFINCLUDE template="dsp_loginconfirm.cfm">
</CFCASE>
<CFCASE value="ViewAll">
<CFINCLUDE template="qry_viewall.cfm">
<CFINCLUDE template="dsp_viewall.cfm">
</CFCASE>
<cfdefaultcase>
<CFINCLUDE template="dsp_loginform.htm">
</cfdefaultcase>
</cfswitch>
</CF_BODYCONTENT>
<CFINCLUDE template="../app_layout.cfm">
--------------------------------------------------------
This is the code for dsp_loginconfirm.cfm:
---------------------------------------------------------
<table border="0" cellspacing="3" cellpadding="2" width="100%"
align="center" valign="top">
<tr>
<td>Thank you for logging into ___________. </td>
<tr>
<td>
<CFMODULE template="index.cfm" fuseaction="viewall">
</td>
</tr>
<TR>
</tr>
</table>
----------------------------------------------------------
When the page comes up, the header and footer are duplicated. I have a
feeling this is pretty obvious for someone familiar with Fusebox but I can't
seem to get it.
Any ideas?
Thanks for the help,
Alan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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