yes and yes.

here's how you can determine that for yourself:
a)create a tiny app with three directories, Grandparent, Parent and Child.
b)  IN Grandparent, set a variable such as <cfset request.myColor = "red">.
In Parent, set a diff't value such as "white", and in Child a different
value again such as "blue"
c) Have grandparent include a file in Parent, and have parent include a file
in Child.
d) at the bottom of Grandparent, output the value of request.myColor, and
you have your answer to your question #1
e) For question #2, instead of doing includes, replace step (c) with calls
to Parent and Child via custom tag notation  (<cf_parent>, <cf_child>)  (if
you used request scope as above then you wont have to both changing Parent
and Child when they are referenced as custom tags

----- Original Message -----
From: "Jim McAtee" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 7:04 PM
Subject: CFInclude Locating Files

> I'm going a little crazy today trying to restructure an old application to
> make it a bit more maintainable.
>
> When a CFINCLUDE is processed from within a template that has been
> CFINCLUDE'd in another template, does CF try to locate the file relative
to
> the 1st included template or relative to the topmost template?
>
> Likewise, when a CFINCLUDE is processed from within a custom tag called by
a
> template, will the file be located relative to the custom tag or to the
> topmost template?
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to