cfmx
tried this out today with cfmx, where cgi.path_info returned only an empty string.
After I replaced with cgi.path_info with cgi.script_name I got the correct siteURL
Posted by: thilo
Posted on: 07/27/2004 09:58 AM
|
CFMX
Couldn't get the siteURL, it show empty, even replaced with cgi.script_name.
Posted by: Jackie
Posted on: 01/14/2005 11:19 PM
|
works great BUT ..
What if the first file pulled from the site is in a subfolder? I have an admin login area that gets a lot of hits ( more than the public side ), so there is a high likelyhood that by using this method, you could run into problems if you have cfm pages in multiple directories.
I already had errors and found it out the hard way. Be careful here, I am going back to simply calling the function at the time of use
<cfset Destination = GetDirectoryFromPath(GetCurrentTemplatePath()) & "/subdirectory/subfolder/">
Posted by: Michael
Posted on: 02/15/2005 11:32 AM
|
how to determine subfolders
This is a nice script, but I'm trying to run a slightly more advanced version. I am trying to determine output of a menu based on the subfolder that the page is contained within. However, this script stops once it reaches the root folder. Can you think of how it can determine the last folder to appear (or a more absolute path) and work off of that?
Posted by: Justin
Posted on: 02/28/2008 12:08 PM
|
Not a problem
Just include from or place this in the application.cfm file.
Posted by: Topper
Posted on: 02/28/2008 06:27 PM
|