Skip navigation
ThomasLLL
Currently Being Moderated

URL paths in Code/Design view

Jul 30, 2012 4:07 PM

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)

 
Replies
  • Currently Being Moderated
    Jul 30, 2012 4:12 PM   in reply to ThomasLLL

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 4:37 PM   in reply to ThomasLLL

    Does anyone know how to make an image with %20 in the URL appear in Design View?

     

    Nope.  I have wished there were a way to do this myself.  Sorry!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 5:37 PM   in reply to ThomasLLL

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2012 9:15 AM   in reply to SnakEyez02

    >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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points