Hi all,
I'm just new to CF_BodyContent, but it's working beautifully.
Fist of all, grab the source for the entire fusebox.org site from
fusebox.org. It is a perfect example/skeleton to start with.
Basically, there are two important files working together, CF_BodyContent
and app_layout.cfm (both supplied with CF_BodyContent). They get called like
this in your FuseBox (index.cfm):
<cf_bodycontent>
<cfparam name="attributes.fuseaction" default="menu">
<!--- Handle FuseActions --->
<cfswitch expression="#attributes.fuseaction#">
<CFCASE VALUE="menu">
<CFSET request.title="Menu Page">
blah
blah
blah
</CFCASE>
</cfswitch>
</cf_bodycontent>
<!--- Display the page --->
<cfinclude template="app_layout.cfm">
The CF_BodyContent builds a variable called BodyContent, BUT DOESN'T DISPLAY
ANYTHING. app_layout THEN displays Header, BodyContent, and Footer. The
cool thing is that the logic in your body has ALREADY been executed, BEFORE
you display your Header. That allows the logic in your body (in your
FuseAction, for example) to affect the display of the Header. In this case,
my Menu FuseAction sets a variable (request.title). If my Header file
references that variable (it does!), then the Title displayed in my Header
can be set by my Body logic.
Does that make sense?
Let me know if I have it all wrong ;-)
Lee (Bjork) Borkman
http://bjork.net ColdFusion Tags by Bjork
-----Original Message-----
From: Chris Lott [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 2:44 AM
To: Fusebox
Subject: Re: Explain CF_BodyContent
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Please explain on the list! Among other things, this is a tag I am
not yet using because I STILL don't get it!
c
- --
Chris Lott
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8 for message encryption and authentication: USE PGP!
Comment: PGP KeyID: 0x51046CFD
iQA/AwUBOcos1daLYehRBGz9EQIWIQCg6zabtBhIU6NPqPTSz/HbYBFM5gEAoOXG
O6l6K2EDTiwGq3zF4tB3gCUV
=P3Ks
-----END PGP SIGNATURE-----
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.