BTW, Happy thanksgiving everyone ;)

Kory

-----Original Message-----
From: Kory Basaraba [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 23, 2000 2:04 PM
To: Fusebox
Subject: Frames and CF_BodyContent


I've got a fusebox frameset working, but as soon as I put the
<cf_bodycontent> tag around my switch statement (or if I include app global,
or put ANYTHING above the switch statement that has any kind of content) the
frameset stops working.

I reviewed Nat's power point presentation, and the book (that's how I got it
working in the first place) but I'm still stuck.

I'm using a header and footer file and the app_layout tag as well. The index
page code is below. (the one that works is first, the one that doesn't is
second)

Any help would be greatly appreciated.

Many thanks,

Kory

Metavsions, LLC
www.metavisions.com


<! -- =====================================================
this code works. Note that all the app_global includes and
cfbodycontent tagsare commented out
========================================================= -->


<cfif Not isDefined("attributes.FuseAction")>
        <CF_FormURL2Attributes>
</cfif>

<!--- Include App_Global.cfm file in which all Global variables are defined
and also session management is controlled --->
<!--- <CFInclude template="app_globals.cfm"> --->

<!--- @Description: set local variables --->
<!--- <cfinclude template = "app_locals.cfm"> --->
<!--- <cfinclude template="tst_arrayvaluelist.cfm"> --->

<cfoutput>


<cfparam name="attributes.fuseaction" default="">

<!--- <cf_bodycontent> --->
<cfswitch expression="#ListFirst(attributes.FuseAction,'.')#">

    <!--- Call Shopping Circuit for fuseactions with the shp prefix --->
    <cfcase value="shp">
    <cfinclude template="shopping/index.cfm">
    </cfcase>

      <!--- Call ShopByCode (sbc) Circuit for fuseactions with the sbc
prefix --->
    <cfcase value="sbc">
    <cfinclude template="ShopByCode/index.cfm">
    </cfcase>

    <!--- Call cart Circuit for fuseactions with the crt prefix --->
    <cfcase value="crt">
    <cfinclude template="cart/index.cfm">
    </cfcase>

        <!--- Call Shopping List Circuit for fuseactions with the crt
prefix --->
    <cfcase value="lst">
    <cfinclude template="list/index.cfm">
    </cfcase>

       <!--- Call Members Circuit for fuseactions with the mem prefix --->
    <cfcase value="mem">
    <cfinclude template="members/index.cfm">
    </cfcase>

       <!--- Call Checkout Circuit for fuseactions with the chk prefix --->
    <cfcase value="chk">
    <cfinclude template="checkout/index.cfm">
    </cfcase>


       <!--- Call Delivery Schedule Circuit for fuseactions with the del
prefix --->
    <cfcase value="del">
    <cfinclude template="DeliverySchedule/index.cfm">
    </cfcase>

    <cfdefaultcase>
    <!--- This file is included to show the main information about the
site. --->
    <CFInclude template="Shopping/SiteMainInfo.cfm">
    </cfdefaultcase>
</cfswitch>
<!--- </cf_bodyContent> --->

</cfoutput>

<!--- <cfinclude template = "app_layout.cfm"> --->


<!--- =================================================
 THIS CODE DOESN'T WORK. The only difference is
that I've removed the comments around the <cf_bodycontent tags>, but the
same thing
happens if I remove the comments around app globals, etc
=========================================================== --->


<!-- /root/index.cfm -->

<!---
|| BEGIN FUSEDOC ||

|| DESCRIPTION ||
I am the root index page for the azure standard site

||PROGRAMMER||

||ATTRIBUTES||

||VERSION HISTORY||

||END FUSEDOC ||
--->

<cfif Not isDefined("attributes.FuseAction")>
        <CF_FormURL2Attributes>
</cfif>

<!--- Include App_Global.cfm file in which all Global variables are defined
and also session management is controlled --->
<!--- <CFInclude template="app_globals.cfm"> --->

<!--- @Description: set local variables --->
<!--- <cfinclude template = "app_locals.cfm"> --->
<!--- <cfinclude template="tst_arrayvaluelist.cfm"> --->

<cfoutput>


<!--- Now before switch statement include searching options templates --->
<!--- <CFInclude template="Shopping/ShoppingSection.cfm"> --->

<cfparam name="attributes.fuseaction" default="">



<cf_bodycontent>
<cfswitch expression="#ListFirst(attributes.FuseAction,'.')#">

    <!--- Call Shopping Circuit for fuseactions with the shp prefix --->
    <cfcase value="shp">
    <cfinclude template="shopping/index.cfm">
    </cfcase>

      <!--- Call ShopByCode (sbc) Circuit for fuseactions with the sbc
prefix --->
    <cfcase value="sbc">
    <cfinclude template="ShopByCode/index.cfm">
    </cfcase>

    <!--- Call cart Circuit for fuseactions with the crt prefix --->
    <cfcase value="crt">
    <cfinclude template="cart/index.cfm">
    </cfcase>

        <!--- Call Shopping List Circuit for fuseactions with the crt
prefix --->
    <cfcase value="lst">
    <cfinclude template="list/index.cfm">
    </cfcase>

       <!--- Call Members Circuit for fuseactions with the mem prefix --->
    <cfcase value="mem">
    <cfinclude template="members/index.cfm">
    </cfcase>

       <!--- Call Checkout Circuit for fuseactions with the chk prefix --->
    <cfcase value="chk">
    <cfinclude template="checkout/index.cfm">
    </cfcase>

       <!--- Call Delivery Schedule Circuit for fuseactions with the del
prefix --->
    <cfcase value="del">
    <cfinclude template="DeliverySchedule/index.cfm">
    </cfcase>

    <cfdefaultcase>
    <!--- This file is included to show the main information about the
site. --->
    <CFInclude template="Shopping/SiteMainInfo.cfm">
    </cfdefaultcase>
</cfswitch>
</cf_bodyContent>

</cfoutput>

<!--- <cfinclude template = "app_layout.cfm"> --->

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

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