Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver

Status
Not open for further replies.

shindig

Instructor
Apr 18, 2002
4
0
0
US
When I insert an image the code written ads a forward slash before the image path. Like it is pointing back to the root.
Example:
<img src=&quot;/images/picture.jpg&quot;> instead of
<img src=&quot;images/picture.jpg&quot;>

This seemed to change when I changed a link sitewide, can someone tell me how to set it back?????

Thx
Shindig
firstmillindesign.com
 
Don't know why its done it, or what the effect is... but...

(1) Create a copy of your site for safety.
(2) Open a file in the original site.
(3) click on the <> button top left
(4) Click find and replace
(5) Find entry would be /images replace entry would be images, choose find in entire local site.


Should work but make sure you do step one AND move it from the site directory first.

 
Thanks nippi,
That was a good band-aid for this site, I wish I could figure out how to set the default image path without the /

Peace out...
 
Don't know how you did it.

Can't offer any advice there I'm afraid.
 
There used to be a setting in dreamweaver which allowed you to change the way links were added to your whole site, either using relative or absolute links.

This has been removed now, and instead you can choose the way the link is specified when it is chosen. At the bottom of the insert image dialogue box (in this case) there is a &quot;relative to&quot; drop down which allows you to choose &quot;document&quot; (relative) or &quot;site root&quot; (absolute - and complete with its very own &quot;/&quot;).

I found a while ago that I chose to add one one image using absolute links, and dreamweaver decided that I wanted all of my links that way - which was nice. I did a search and replace to rectify it, but I think if you added another image using relative lnks it should revert the rest of your images as well.

It has to be worth a go. Derren
[Mediocre talent - spread really thin]
 
I knew it was something small, thank you....
It's funny, because it switched when I used the change link sitewide to chnge some hyperlinks and then all image inserts were that way...

Peace Out
firstmilliondesign.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top