Hi SY, Well, you can either include the CSS and JS files directly from your out_layout.cfm (app_layout.cfm, dsp_layout.cfm, etc), or include them from within your header file (eg, out_header.cfm). Using CF_BodyContent, you defer actually building the header and final layout until AFTER the main body's logic has been executed. So in your body logic (ie within your index.cfm's individual CFCASE statements) you can set request-scope variables that will be used by out_layout or out_header. So you might have a var called request.stylefile. Within the FuseAction called "theSeventies", you set request.stylefile="". Within the FuseAction for "theTwenties", you set request.stylefile="tassles.css" out_layout or out_header then include the appropriate style file, or none at all. Does that help? LeeBB -----Original Message----- From: Stacy Young [mailto:[EMAIL PROTECTED]] ok I'm currently using CF_BodyContent and I understand the concept. Now I'd also like to use it (or sumthing) to contruct the header at that time...so for a particular page I can set a certain style sheet or Javascript files etc.. Thanks for the help! -----Original Message----- From: BORKMAN Lee [mailto:[EMAIL PROTECTED]] Hi Stacey, In FuseBox, this is usually done with a global header file. Depending on your preference, this is probably: dsp_header.cfm out_header.cfm blocks/header.cfm blocks/out_header.cfm You can include this explicitly at the top of your index.cfm, or (much more flexible) use CF_BodyContent and dsp_layout (or app_layout or whatever) to defer the display of the page until all of the components have been built. Is that any help? LeeBB -----Original Message----- From: Stacy Young [mailto:[EMAIL PROTECTED]] Yall have a common way of contructing the header on each request? Maybe you set the style sheet and JS file in the DSP file or something? I'm new here.. :) IMPORTANT NOTICE: This e-mail and any attachment to it is intended only to be read or used by the named addressee. It is confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistaken transmission to you. If you receive this e-mail in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. The RTA is not responsible for any unauthorised alterations to this e-mail or attachment to it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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
