Two ways I've handled this sort of thing in the past:

1. If Special.cfm is in a subdirectory, ensure that that subdirectory has
its own Application.cfm. Then the one in the root will not be fired.

2. Use logic in Application.cfm to determine if the file should be included.
Something akin to 

  <cfif FindNoCase("Special.cfm",CGI.CF_TEMPLATE_PATH) EQ 0>
    <cfinclude template="header.cfm">
  </cfif>

Adjust as necessary. The first option isn't very helpful if there's a lot
going on besides the CFINCLUDE. The second gets unwieldy when you have a lot
of exceptions.

> -----Original Message-----
> From: Srimanta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 03, 2002 7:53 PM
> To: CF-Talk
> Subject: Application & Cf Include
> 
> 
> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to