I have the same problem...
I handle it by setting a path variable in the application.cfm.. if the
SERVER_NAME=localhost then set path to '/whmedia/' if not, set it to '/'
then whereever this problem pops up, use:
#path#image.gif
Al
At 02:30 PM 4/27/2006, Aaron Roberson wrote:
> >You need the whmedia in your links. The leading "/" takes you to the
>webroot of >localhost. The link "/images/afile.jpg" is looking for
>just that not the images in the >whmedia subfolder.
>"/whmedia/images/afile.jpg" is what is need to use a root relative
>link.
>
>What about the path to components? On my development machine it is
>whmedia.componentdirectory.componentname but on the server it is just
>componentdirectory.componentname. The first time I uploaded my site
>(this is the first site I've built using CFC's) I had to rush through
>all the files with invoke statements and change the paths to my
>components.
>
>Any ideas or suggestions on streamlining this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238982
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54