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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping Absolute Paths

Status
Not open for further replies.

MrScotch

Programmer
Joined
Aug 31, 2001
Messages
1
Location
US
HELP!!! For some reason all of my text links & images transfer over their absolute paths whenever I save the current file under a different folder.

Example:
File name Test.html is in my C:/Dreamweaver folder. This page contains a link to the image Crab.gif in the same folder - thus the source is listed as only Crab.gif

Now if I save the Test.html page in my C:/Help folder the image source is now listed as C:/Dreamweaver/Crab.gif.

How do I get all my images and text links to not copy over their absolute paths & just their actual file name (crab.gif)?
 
Hello MrScotch!

Firstly, you need to define site. The main idea is to design and work with entire site instead of one page.

To define site go to Site > Define Sites > and enter all necessary settings (don't forget to set up site root - Local Root Folder). Since now DW sets all links relative to site root.

Secondly, in your example image is out of root folder (it's in different folder) - it may have only absolute path. To let your elements have relative path they must be inside your site root.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top