But, if you have other code in Application.cfm that still needs to apply to special.cfm, than this solution won't work. Instead, as someone else (sorry, I already deleted the msg) suggested, just write some code that checks for the name of the script. Your code might look like:
<CFSET ExcludeList="/someDir/special.cfm"> <CFIF ListFindNoCase(ExcludeList, CGI.SCRIPT_NAME) NEQ 0> <CFINCLUDE TEMPLATE="Header.cfm"> </CFIF> <!--- Do other Application.cfm stuff ---> -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Jim Curran [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 03, 2002 8:17 PM > To: CF-Talk > Subject: RE: Application & Cf Include > > > You can use > > <Cfif *insert logic here to exclude*> > <cfexit> > </cfif> > > within the header.cfm file. > > <CFEXIT> stops the execution of that template, similar to cfabort, but > it just aborts the current template. > > This makes the logic to exclude nice and clean since it is contained > within the included file. > > - j > > jim curran > technical director > nylon technology > 212.691.1134 > [EMAIL PROTECTED] > > -----Original Message----- > From: Tom McNamee [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 03, 2002 7:59 PM > To: CF-Talk > Subject: Re: Application & Cf Include > > > Could you check CGI.SCRIPT_NAME to see if it's the special file, and > cfinclude only if false? > ========== > At 11:52 AM 10/4/2002 +1200, you wrote: > >Hi, > > > >Is there a way to exlude a file (on a particular cfm template) which is > > >included in the Application.cfm by <cfinclude> tag. In other words, I > >have an Application.cfm which includes a header.cfm file by > ><CFINCLUDE>tag. Within the same application framework I have a file > >Special.cfm. I do not want to load the Header.cfm file on this page. > >But as the application.cfm file includes the header file it is always > >included in all the other files. > > > >I know I can use the cfinclude tag on each and every page individually > >to include the header page. But as the intranet site has more than 500 > >templates it seems to be a lot of work just to exclude one page. > > > >Any ideas ? > > > >Thanks > > > >Srimanta > > > > > >----- Original Message ----- > >From: "Paris Lundis" <[EMAIL PROTECTED]> > >To: "CF-Talk" <[EMAIL PROTECTED]> > >Sent: Friday, October 04, 2002 2:51 AM > >Subject: Re: Cumulative Patch for SQL Server (Q316333) Crtical for 2000 > > > > > > > Micro$oft has to stop this s*it... > > > > > > It's getting silly as can be... In the last week we have had to > > > install about 4-6 OS issued patches it seems and now this... > > > > > > These big long winded follow 652 step type ones are at the top of > > > the annoyance list.. > > > > > > It's almost like they are daring us all to flee their > > > stranglehold... > > > > > > Just imagine if this were your car and every day almost you had to > > > take it to the dealer to be serviced... What would you do with that > > > > car? > > > > > > Paris Lundis > > > Founder > > > Areaindex, L.L.C. > > > http://www.areaindex.com > > > http://www.pubcrawler.com > > > 412-292-3135 > > > [finding the future in the past, passing the future in the present] > > > [connecting people, places and things] > > > > > > > > > -----Original Message----- > > > From: Zac Spitzer <[EMAIL PROTECTED]> > > > Date: Thu, 03 Oct 2002 16:42:25 +0200 > > > Subject: Cumulative Patch for SQL Server (Q316333) Crtical for 2000 > > > > > > > Microsoft Security Bulletin MS02-056 > > > > > > > > > > <http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s> > > > > > > ecurity/bulletin/MS02-056.asp> > > > > > > > > have fun, yet another crappy m$ patch from with no installer and 2 > > > > > pages > > > > of instructions > > > > > > > > and it's rated critical for all internet instances > > > > > > > > z > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com