I know it's probably obvious, but I'm stumped. I set the content variable, but it is saying it's undefined...
Phillip M. Vector wrote: > It says Variable BODY is undefined. > > *scratches his head* > > > The Application I want to appear in the body section is.. > > <fuseaction name="default"> > <include template="frm_Application.cfm" contentvariable="Body"/> > <do action="Layouts.Header"/> > </fuseaction> > > > and in the layouts directory.. > > <fuseaction name="Header"> > <include template="dsp_Header.cfm"/> > </fuseaction> > > dsp_header.cfm is ... > > <table width="100%" border="1"> > <tr> > <td width="20" bgcolor="#990000"> > </td> > <td width="200" bgcolor="#FFFFFF"> > <cfinclude template="dsp_Menu.cfm"/> > </td> > <td width="400" bgcolor="#FFFFFF"> > <cfoutput> > #Body# > </cfoutput> > </td> > <td width="20" bgcolor="#000000"> > </td> > </tr> > </table> > > > > Sean Corfield wrote: >> On 5/27/07, Phillip M. Vector <[EMAIL PROTECTED]> wrote: >>> In the header file, I have a table where I have 2 columns. In the left >>> side, I cfincluded a menu. On the right, I'd like to change the page >>> shown based on what the menu selection was. (I.e. Blog, Video, Admin >>> section, etc). >> <fuseaction name="blog"> >> <include template="blogpage" contentvariable="body"/> >> <do action="layout"/> >> </fuseaction> >> >> <fuseaction name="video"> >> <include template="videopage" contentvariable="body"/> >> <do action="layout"/> >> </fuseaction> >> >> <fuseaction name="admin"> >> <include template="adminpage" contentvariable="body"/> >> <do action="layout"/> >> </fuseaction> >> >> <fuseaction name="layout"> >> <include template="layout"/> >> </fuseaction> >> >> Then inside layout.cfm you have all your layout: >> >> <cfinclude template="header.cfm"> >> <table> >> <tr> >> <td> >> <cfinclude template="menu.cfm"> >> </td> >> <td><cfoutput>#body#</cfoutput></td> >> </tr> >> </table> >> >> The first three fuseactions place the output of the included file into >> the variable 'body' and the last fuseaction includes the overall >> layout for the page which uses the variable 'body'. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279371 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

