PDA

View Full Version : Quick Dreamweaver question


ILoveHostasaurus
07-05-06, 09:23 PM
Can someone who knows Dreamweaver tell me where to have a customer look to make their Dreamweaver start publishing files relative to the remote do***ents directory instead of their hard drive? All the files they publish have image tags such as:

<img src="file:///K|/files/Website/Web-Domain/images/banback.jpg" width="770" height="154" border="0" />

instead of what should probably be /images/banback.jpg for example.

Bruce - PhosphorMedia
07-05-06, 09:29 PM
Under Sites menu, the need to setup a site, and choose a local directory to represent the server's Root directory...for example C:\web sites\mystore\html\...although it can be anything...afterwards, opening that "Site" file in Dreamweaver and linking to something in the C:\web sites\mystore\html\images directory will give the relative link src="images/filename.gif"

ILoveHostasaurus
07-05-06, 09:30 PM
Ah; is there a way to have it rebuild the pages that have already been created? I checked with the customer and we went through the remote and local settings to make sure they were right but it sounds like pre-existing pages from before there were remote settings configured will be left in this state?

Thanks!

Bruce - PhosphorMedia
07-05-06, 09:35 PM
There are Check and Change (Search and Repalce) Site links options, but no "rebuild" option...since it wouldn't know whether non-relative link was intentional...its under the "Site" tab in the Files "pane" (DreamWeaver MX Studio)

Pete McNamara
07-06-06, 09:56 AM
If you can't do partial link changes for all the links in just one go with the above option (I have never tried doing it that way), then try using the Edit|Find and Replace function as you definitely can do sitewide partial replaces e.g. changing

file:///K|/files/Website/Web-Domain/images/
to
/images/

(where <base href="&mvt:global:basehref;"> appears in the head tag and the images directory is a sub directory of the mm5 directory) or whatever partial link you want.

Then you need to select:
Find In "Entire Local Current Site"
and
Search "Source Code"
then "Replace All"