from FuseWiki (http://www.meta-magic.com/cgi-bin/fusewiki?BodyContent)...
"CF_BodyContent (though probably misnamed) is one of Steve Nelson's coolest
and most underrated tags. There's not much to it really. It just dumps the
output of the enclosed CFML code into a variable (request.bodycontent by
default), instead of pumping it it straight out to the browser.
"BUT... the uses of this are incredibly varied. The most common technique is
to execute blocks of code in any order you wish, and then display the
resulting HTML blocks in a different order. For example, you can execute the
page body before you execute the header. This allows logic in the body code
to affect the execution of the header code, so the body logic can determine
the page title, or can call for enclosing <FRAMESET> code instead of <HTML>.
"To summarise the technique: - Use CF_BodyContent to dump the output of your
code blocks into variables, deciding on the execution order that suits you
best; - Use a simple CF template to output and layout the resulting HTML
blocks any way you like.
"The uses of this tag go way beyond FuseBox, although the two together make
a perfect partnership"
Man, whoever wrote that sure gets carried away!
Have fun.
LeeBB.
ps., the syntax is <CF_BodyContent NAME=XXX>...</CF_BodyContent>. Returns
the output of the code inside to the variable request.XXX.
>From: "Kola Oyedeji" <[EMAIL PROTECTED]>
>
>What exactly does cf_bodycontent do ? I've heard it mentioned quite a bit?
>
>Thanks
>
>KOla
>
>-----Original Message-----
>From: Hal Helms [mailto:[EMAIL PROTECTED]]
>Sent: 19 May 2001 22:46
>To: Fusebox
>Subject: RE: Extended Fusebox
>
>
>***************************** Team Allaire *****************************
>The <cf_bodycontent> tag was removed due to an oversight on my part. It's a
>fantastic tag and I highly recommend it. In fact, I think it may hold crown
>as "Single Most Useful Four Lines Of CF Code ".
>
>-----Original Message-----
>From: Adam Reynolds [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 10, 2001 9:46 AM
>To: Fusebox
>Subject: Extended Fusebox
>
>
>I have used a slightly different version of this in the past. What I
>wanted to know was why in the examples available on Fusebox.org(Fusebox
>101), the cf_bodycontent has been removed from the 'top' level fusebox.
>
>I felt that this was a useful place to control the 'display' side of a
>site. In essence each sub fusebox only provides content assuming display
>within the <body> tag.
>
>Best Regards,
>
>Adam Reynolds
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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