I had the same issue. I set a rootDir variable in my app_locals.cfm file for
each index.cfm file. For instance:
<cfset request.rootDir = "../..">
<cfset request.rootImages = "#request.rootDir#/images">
This would bring me to the root 2 directories up. Then if I wanted to refer
to a template (or images directory) off the root, I would simply call
<cfinclude template="#request.rootDir#/myIncludedTemplate.cfm">
OR
<img src="#request.rootImages#/myPic.gif">
Hope this helps.
__
Ryan Wood
SourceScape - "Dynamic Web Solutions"
[EMAIL PROTECTED] | www.sourcescape.com
864.346.3342 (cell/voice mail)
-----Original Message-----
From: Stephen Morse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 8:10 PM
To: Fusebox
Subject: Unable to use Mappings
Hello everyone,
I have inherited a very complex fusebox app that we have to host off-
site.The hosting company that we are going to use doesn't allow us
to create mappings. Without that ability I would have to manually
change all the "/siteroot" references to a relative path. I started to
play with doing it dynamically, but I'm over my head with regular
expressions.
Has anyone played with creating relative mappings from the current
siteroot and cgi.path_info (or cgi.script_name? Before I bang my
head on regular expressions any more I thought I would see if
someone else has already solved this problem.
Hope someone can help.
Stephen Morse
ICQ # 67478942
AIM knightcloak2k
"I love Mickey Mouse more than any woman I've ever known."
--Walt Disney
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists