Raymond Camden wrote:
>>My subfolder's application file would look like this:
>><cfscript>
>>CSOnline = "True";
>></cfscript>
>><cfinclude template="/application.cfm">
>>
>>Like I said, it seems to work. Any reason not to do this? Thanks!
>>
>
> As long as you are aware that changes to the root app.cfm affect the
> children - I say go for it. I've used this method multiple times in the
> past.
There is even a way to exclude stuf from children. My Application.cfm
usually looks like below.
Jochem
<!------------------------------------------------------------------------------
Application.cfm
Top section:
includes everything that is needed when the Application.cfm is the top
of its root.
Note: Mutually exclusive with Inherited section
Inherited section:
includes the parent Application.cfm to inherit settings from there, but
only the global settings from there, not the directory specific settings.
Note: Mutually exclusive with TOP section
Cascading section:
contains variables/settings that are used in this directory and in
subdirectories of this directory.
Directory specific section:
contains variables/settings that are only used in this particular
directory, not in any subdirectories
------------------------------------------------------------------------------->
<!--- Top section --->
<!--- code goes here --->
<!--- Inherited section --->
<cfinclude template="../Application.cfm">
<!--- Cascading section --->
<!--- code goes here --->
<!--- Directory specific section --->
<cfif ListLen(GetCurrentTemplatePath(),request.directorydelimiter) IS
ListLen(GetBaseTemplatePath(),request.directorydelimiter)>
<!--- code goes here --->
</cfif>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists