> I would like to make some vars for my Application dynamic, especially if > they are accessed from different path mappings, or from different > sym-links in the directory tree: > > * absolute local path on server > * relative local path > * URL path > > For the directory that the Application.cfm is in. I have been > experimenting a little with getbasetemplate, but that won't work if the > template is in a dir below the Application root dir).
Not sure if this may help: http://www.cfmentor.com/code/index.cfm?action=script&id=94 For example, put the UDF above in Aplication.cfm, then, still in Application.cfm, call it this way: relativeFilePath(GetBaseTemplatePath(),GetCurrentTemplatePath()) It will give you the relative path between the current .cfm file and Application.cfm. I also use it pretty often inside custom tags and includes Massimo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

