-
1. Re: One directory above GetDirectoryFromPath(GetTemplatePath())
Carl Von Stetten Apr 25, 2014 1:41 PM (in response to WolfShade)Can you maybe show the folder structure so it's clear where you are and where the mapping should point?
Thanks,-Carl V.
-
2. Re: One directory above GetDirectoryFromPath(GetTemplatePath())
tribule Apr 25, 2014 2:35 PM (in response to WolfShade)Just use:
#ExpandPath( "../" )#
That will get you one level above where you are now Keep adding "../" to go up a level.
-
3. Re: One directory above GetDirectoryFromPath(GetTemplatePath())
BKBK Apr 26, 2014 3:05 PM (in response to tribule)To expand on what Tribule says, for an Application.cfc in the admin directory, the absolute path of the project directory is expandPath("../project") and the absolute path of the components directory is expandPath("../project/components").
Addendum
Oh, by the way, getTemplatePath() was deprecated long ago.
Message was edited by: BKBK
-
4. Re: One directory above GetDirectoryFromPath(GetTemplatePath())
WolfShade Apr 28, 2014 5:57 AM (in response to BKBK)Thank you for your replies, @tribule and @BKBK.
!!! Can't believe that I didn't think of "../"; like I said, I'm sure it's a simple solution that I'm just not recalling.
The project has an Application.cfc, but the admin folder in that project also has its own Application.cfc, and I don't want to "include" the root Application.cfc in the admin one. So, the "../" per directory level should work perfectly from within the admin Application.cfc. I'll give that a shot and report back.
BTW, did not know that getTemplatePath() had been deprecated. Thanks for the heads-up.
V/r,
^_^
UPDATE: Success. That nailed it. Works perfectly. Thank you, again!
-
5. Re: One directory above GetDirectoryFromPath(GetTemplatePath())
tribule Apr 28, 2014 6:35 AM (in response to WolfShade)




