"The current page" refers to the currently processing template.  In other
words, the included template that is currently processing.  So, any time you
want to use <cfinclude> in a template, you use the relative path to the one
that you want to include, based upon the location of the file that you are
writing the <cfinclude> in.
 

-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:49 PM
To: CF-Talk
Subject: Re: Finding the CFINCLUDE path

 >> I don't remember if it contains path information.

No, it doesn't, it just repeats the file name given in the template
ATTRIBUTE.

The problem is that the way it is documented is not clear:
"ColdFusion searches for included files in the following locations:
1. In the directory of the current page or a directory relative to the
current page..."

But when a first included template includes a second template, this one is
searched in the directory of the first template, not the top level page.
IMHO, this is not conform to what the docs says.
The first included template is not "the current page"
The "current page" is the page requested by the browser. An included
template is NOT a page in the HTML sense of the term.
The "current page" should be the same for all included files, at any level.

This is why sometimes it would be great to have the exact directories where
the includes were actually searched.
It would help correct the code so that CFINCLUDE finds the correct file.

--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED]) Thanks.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259552
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to