In the application.cfm, you can set a variable that holds the absolute
path to the image folder (or the path starting from the root). Then use
that variable when you need the path to an image. I usually create a
structure that holds parameters that depend on the server. Something
like:

request.app.dsn
request.app.imgFolder
request.app.rootFolder
request.app.rootUrl
request.app.mapping
....

I create them in a separate file that I include in the application.cfm.
I have a different file for every server (local, dev, staging, prod,
....) where the application is deployed.

> -----Original Message-----
> From: daniel kessler [mailto:[EMAIL PROTECTED]
> Sent: 03 May 2005 15:22
> To: CF-Talk
> Subject: RE: level 1, level 2
> 
> Wouldn't /images/ refer to the images directory on the root level?
This
> is a directory within and the whole site is there.
> 
> In what way would I define a variable for a path to the images.  It
would
> seem to me that the variable would have to change just like the
header.
> Can you give me a small example?  sorry to be dense about it.
> 
> >/images/ ?? or define a variable with the path to images.
> >
> >Pascal
> >
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205369
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