Hey Sneid,
Here's how I do it with a single FuseBox (index.cfm).
A basic two-frame site needs to server up THREE kinds of page:
* a frameset
* a nav page
* a content page
Each of these will want a different header, so we have have these header
options:
* No header at all;
* dsp_navheader;
* dsp_contentheader;
Now we use three FuseActions:
<!--- default header is for a normal content page in the right pane --->
<CFSET request.header="dsp_contentheader.cfm">
<CFSWITCH>
<CFCASE VALUE="mainframe">
<CFSET request.header="">
<CFINCLUDE TEMPLATE="dsp_mainframe.cfm">
</CFCASE>
<CFCASE VALUE="nav">
<CFSET request.header="dsp_navheader.cfm">
<CFINCLUDE TEMPLATE="dsp_mainmenu.cfm">
</CFCASE>
<CFCASE VALUE="welcome">
<CFINCLUDE TEMPLATE="dsp_welcome.cfm">
</CFCASE>
</CFSWITCH>
Then in the dsp_mainframe.cfm fuse you to call the pages to populate the two
frames, using these URLs:
* index.cfm?fuseaction=nav
* index.cfm?fuseaction=welcome
That's about it. CF_BodyContent will take care of the rest, putting the
appropriate header to each page served.
There's really nothing very tricky going on. Just remember that a two-frame
layout uses THREE ENTIRELY SEPARATE pages, which will correspond to three
fuseactions.
That's about it. Give it a go before you head off using multiple
index.cfm's.
Good luck,
LeeBB
>From: "Sneid" <[EMAIL PROTECTED]>
....
>
>I am having some problems with the utilisation of the CF_BodyContent Tag
>together with the use of Frames.
>Well, i have had an overview of the thread regarding this issue but i was
>wondering if there is another way out apart from the solution whereby two
>index.cfm files can be called in the two different frames with each
>index.cfm file firing two different fuseactions.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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