you're missing quotes, but otherwise this will work IF the template that has
the <cfdirectory...> tag is in the SITE folder. If it still doesn't work
you may want to add a dot to represent current folder like so:
#expandPath("./images/tour")#
but I can't remember offhand if the dot is required...
+-----------------------------------------------+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+
"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-----Original Message-----
From: Webmaster [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:40 PM
To: CF-Talk
Subject: RE: cfdirectory
<cfdirectory ACTION="directory action"
DIRECTORY="#expandPath(images/tour)#">
the actual physical path is: E:\site\images\tour
the template is in the site dir and I want to go to the tour dir.. Am I
correct in the way I have it formatted?
I can't use that because of where we are hosting they will not give me the
physical paths.
-----Original Message-----
From: Bryan Love [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 2:20 PM
To: CF-Talk
Subject: RE: cfdirectory
and keep in mind that expandpath() evaluates a templates full path FROM THE
CALLING TEMPLATE - NOT from the current web location.
+-----------------------------------------------+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+
"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis
-----Original Message-----
From: Webmaster [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 12:19 PM
To: CF-Talk
Subject: RE: cfdirectory
I tried and got an error evaluating expression..
-----Original Message-----
From: Rocky Palladino [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 1:38 PM
To: CF-Talk
Subject: Re: cfdirectory
> Is there any way to use cfdirectory this way in CF 4.5:
>
> <cfdirectory ACTION="directory action"
> DIRECTORY="../directory/files">
Did you try using the expandPath() function around your relative path?
<cfdirectory ACTION="directory action"
DIRECTORY="#expandPath(../directory/files)#">
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
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