You need to move the cfparam name="attributes.fuseaction" default="blah"> to
the top of the page and out of the cf_bodycontent tags. under the include
for app_globals is good. Also do not leave the param blank, but actually
put the value in.
Use the defaultcase to signal that a fuseaction was called that isn't there
anymore, or someone is playing.
Fred
So you'd want something like this.
<cfinclude template="app_globals.cfm">
<cfparam name="attributes.fuseaction" default="main">
<cf_bodycontent>
<cfswitch expression="#attributes.fuseaction#">
<cfcase value="main">
<cfinclude template="dsp_default.cfm">
</cfcase>
<cfdefaultcase>
<cfthrow type= "Invalid_Fuseaction" message ="We are sorry. That
is not a valid Fuseaction."
detail = "An invalid Fuseaction has been called.">
</cfdefaultcase>
</cfswitch>
</cf_bodycontent>
----- Original Message -----
From: "S. R." <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Sunday, February 04, 2001 11:12 AM
Subject: First Fusebox site
> hey guys, working on my first fusebox site and reading Steve's book at the
> same time..
>
> I've developed a simple index.cfm file below but it displays nothing. If
I
> take out the bodycontent tag it displays correctly. Is there something I'm
> not getting?
>
> <cfinclude template="app_globals.cfm">
>
> <cf_bodycontent>
> <cfparam name="attributes.fuseaction" default="">
> <cfswitch expression="#attributes.fuseaction#">
> <cfdefaultcase>
> <cfinclude template="dsp_homepage.cfm">
> </cfdefaultcase>
> </cfswitch>
> </cf_bodycontent>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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