the CF mappings are for CF tags only.  So a CF mapping is useless for
use in an HTML IMG tag.  For nav headers and such, to make them
portable, I usually set a variable to store the full path to the app
wherever you store app level settings.  So,  for example

approot = 'http://foo.com/mypath/to/myapp'

then in the img tag
<img src="<cfoutput>#approot#</cfoutput>/images/gooey.png" />

HTH

Doug


On Wed, 17 Nov 2004 15:08:25 -0500, Jeff Small <[EMAIL PROTECTED]> wrote:
> Okay, so in my root, I want to set up the navigation include so the path is
> <cfinclude template="/includes/navigation.htm"> and on lower pages, the path
> can be identical. Then, IN the navigation I'd like to be able to use <img
> src="/images/navigation/button1.jpg"> and have it work on pages both in the
> root and a single directory down.
> 
> I feel like I'm sniffing around for mappings, but I've never actually done
> it. I have a localhost that I'm testing here on my machine (F12) and when
> I'm done and check it in, I'd like the paths to work over on our development
> server as well. So do I need to create two sets of mappings? In each of my
> CFAdmins (the one locally and the one on dev)?
> 
> So the mapping to http://localhost/foo is to C:\Inetpub\wwwroot\foo, right?
> Am I heading in the roght direction?
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:184659
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