Whenever I have a directory where I want to override stuff from the app
root, I put an Application.cfm in that directory that basically looks like:


<cfinclude template="..\Application.cfm">

<!--- Logic specific to this directory here --->





> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:mynews@;twcny.rr.com]
> Sent: Wednesday, November 06, 2002 10:25 AM
> To: CF-Talk
> Subject: RE: Using CFDirectory on every page
> 
> 
> The Application.cfm is being used for many other things so I 
> only want there to be the one I have in the root dir.
> 
> DM
> 
> = = = Original message = = =
> 
> > Is there a unacceptable performance hit if I were to use cfdirectory
> > on every page of my site?
> >
> > What I want to do is look in each directory for an include 
> and
> > if it isn't there look for that include in the parent directory.
> > This will allow me to use the same include for an entire section
> > but will give me the ability to overide that include for a
> > sub-section if needed.
> 
> Why can't you use application.cfm?
> 
> CF naturally "walks" the directory tree if it can't find one...
> 
> Philip Arnold
> Technical Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> Switchboard: +44 (0)20 8680 8099
> Fax: +44 (0)20 8686 7911
> 
> www.aspmedia.co.uk
> www.aspevents.net
> 
> An ISO9001 registered company.
> 
> **********************************************************************
> This email and any files transmitted with it are confidential 
> and
> intended solely for the use of the individual or entity to whom 
> they
> are addressed. If you have received this email in error please 
> notify
> the system manager.
> **********************************************************************
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to