I just inherited a site that has a lot of images that are all hard coded (absolute URLs), and unfortunately, there are spaces in the path/ file names, such as /Main Folder/images/Picture File.jpg. When you plug the URLs into a browser or into DW code view, the spaces are filled in with %20 to represent spaces such as /Main%20Folder/images/Picture%20File.jpg
My goal is to have the images appear in the Design View, instead of the broken url gray image. It seems that only image url's without any spaces or without any %20 appear in Design View. Does anyone know how to make an image with %20 in the URL appear in Design View? Thanks!
(yes, I know that renaming the paths is the best solution, but this site is too big at this point, and I don't have any way to update thousands of files at a time)
If you have a defined site in DW and you rename a folder, it should update the associated paths given that the site is not dynamically driven from a database.
If I were you I would try that or do a find and replace to update the paths to either something new or to add in the encoding (%20). Otherwise, given how unreliable DW's design view is to begin with install a local web server and just use a web browser or live view to see your pages.
Thanks Snake. Unfortunately, the site is VERY database driven. And they won't let me edit a page directly in DW. I have to open the page in an ancient CMS, copy the code into DW, edit it, and then upload the new code back. I LOVE the find and replace features of DW, but that only works, like you said, when I can define the site as a DW site.
Believe me Thomas, I know exactly what you are going through. I used to work for a company that used an archaic ecommerce platform called Marketlive. It was a beast, but caused more problems than what it was worth. But the companies that have grown with them have become so big they are afraid of change themselves. Unfortunately, you just have to make with what you have. Personally I'd still try to push about the paths because a find and replace could still be done ont he database side, although a bit more complicated than DW's because you would have to write a query to replace the values, but still possible. Honestly, I would just do without the preview and just code as if DW is your text editor and then upload and test. I wish there was a better answer, but even when I was in the tough situation that's what I worked with. If they don't like how time consuming it can be that way, then you need to show management how you could save time and money.
>If you have a defined site in DW and you rename a folder, it should update
>the associated paths given that the site is not dynamically driven from a database.
But not absolute path's since DW is not managing those in the first place.