> I just was wondering how you all are managing this kind of development
thing
> where you want to create includes and minimize coding, but have to make
> paths in those includes work properly, no matter where they are in your
> site...

I wrote a UDF for similar tasks:
http://www.cflib.org/udf.cfm?ID=841

Then I put this in Application.cfm:

<cfset appRoot=GetDirectoryFromPath(GetCurrentTemplatePath())>
<!--- Figure out relative path from the current template to the app's
root --->
<cfset pathToRoot=relativeFilePath(GetTemplatePath(), appRoot)>

Hope it will help

----------------------------
Massimo Foti
DW tools: http://www.massimocorner.com
CF tools:  http://www.olimpo.ch/tmt/
----------------------------



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188509
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to