Any changes to header or footer includes should be made in the index.cfm

--Jeffrey

<cf_bodycontent>
    <cfset attributes.headerfile = "dsp_header.cfm">
    <cfset attributes.footerfile = "dsp_footer.cfm">

        <cfswitch expression="#attributes.fuseaction#">

        <cfcase value="main">
                <cfinclude template="dsp_main.cfm">
        </cfcase>

        <cfcase value="action1">
                <cfinclude template="dsp_action1.cfm">
                <cfset attributes.footerfile = "dsp_action1footer.cfm">
        </cfcase>

        <cfdefaultcase>
            <cflocation url="index.cfm?fuseaction=main">
        </cfdefaultcase>

         </cfswitch>

</cf_bodycontent>

<cfinclude template="app_layout.cfm">

 -----Original Message-----
From:   Martin Cadirola [mailto:[EMAIL PROTECTED]]
Sent:   Monday, December 04, 2000 7:17 PM
To:     Fusebox
Subject:        Multiple Footer Files on app_layout

Hey there!

I'm building a site that has a header, a body, a "login cell" (that
changes to a "welcome cell" if the user logged in), and a "banner cell"
(where button ads are). The last two cells are positioned right of the
body, so I'm putting these two as part of the footer. Therefore I end up
having multiple footer files: they only vary slightly from one page to
the other.

Since I need to perform conditionals mainly on the "login cell", I'd
like to know tips/suggestions on locating this conditional code:

-Should it be on the circuit application's index file, by passing a
variable to the app_layout?

-Should it be included directly in the app_layout?

I know there are many ways to do this, but, you know, I don't want to
reinvent the wheel ;>)

Thanks in advance!

Martin Cadirola
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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

Reply via email to