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'. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279369 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4