> What is the best way to implement a left navigation bar (like the
> one you can see on www.amazon.com) with CF_BodyContent without
> using frames?
It depends on whether or not you need to stick to orthodox Fusebox.
Personally, I don't use headers and footers, in favor of tmp_ (template)
files. Tmp_s are defined as display "containers" made up of little or no CF
code... the only things allowed are CFOUTPUT and CFLOOP. And I use a heavily
modified version of CF_BODYCONTENT to support content arrays within a
central body structure.
So here (in abridged form) is how one of my fuses might look:
=== INDEX.CFM ===
<cf_bodycontent bodyname="main">
<cfcase value="dothis">
<cfset request.root.template = "tmp_main.cfm">
<cfinclude template="dsp_dothis.cfm">
</cfcase>
</cf_bodycontent>
=== DSP_DOTHIS.CFM ===
<h1>Hello world</h1>
<p>This is the main body of this fuseaction.</p>
<cf_bodycontent bodyname="title">
A Sample Fuseaction
</cfbodycontent>
<cf_bodycontent bodyname="sidebar">
<p>Meanwhile, this is the sidebar content.</p>
</cf_bodycontent>
=== APP_LAYOUT.CFM ===
<cfparam name="request.root.template" default="tmp_default.cfm">
<cfinclude template="#request.root.template#">
=== TMP_MAIN.CFM ===
<cfoutput>
<html>
<head>
<title>#request.body.title#</title>
</head>
<body>
<table>
<tr>
<td width="150">#request.body.sidebar#</td>
<td>#request.body.main#</td>
</tr>
<tr>
</table>
</body>
</html>
</cfoutput>
--
Roger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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