Do you have access to the cfregistry tag!


Regards,
Andrew Scott


-----Original Message-----
From: Bruce Holm [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 26 September 2001 1:16 AM
To: CF-Talk
Subject: Re: Absolute Path Usage

What I am wanting is a relative path but relative to the web root...for
portability.

I have an include file that I want to include by specifying the same
path
every time in all files in the hierarchy.  So I put this include file in
/global directory and want to reference it by "/global/foo.cfm", which
if it
worked, would be the same include line in all files in my web site.  But
this path does not work for includes.

I have tried a variety of absolute paths and find none that work.  If
anyone
can shed some light on this...my host shares the CF server so asking
them to
configure a mapping for "/" is not going to happen since it would only
work
for my domain and not for all the other domains they host.

The only workaround I can think of is create some code that looks at the
absolute template location and calculate what level the template is in
and
set the relative path accordingly... not very idea.

Or just hard code the include path in each file on a file by file basis.

Bruce

----- Original Message -----
From: "Peter Tilbrook" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:10 AM
Subject: RE: Absolute Path Usage


> Relative paths are recommended, if more for portability that anything
else.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to