HighDots Forums  

everything linked to local drive

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss everything linked to local drive in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
koony
 
Posts: n/a

Default everything linked to local drive - 05-11-2005 , 02:22 PM






:confused; Our school website www.tigertown.k12.mo.us is not setup correctly.
The links all reference to the W drive on the server instead of the http
address. If we view it from inside the network it views correctly. We think
that our problem was that we did not have the http address filled out in the
site definition section. How do we fix it now that the pages have been created?

Thanks


Reply With Quote
  #2  
Old   
Donna Casey *TMM*
 
Posts: n/a

Default Re: everything linked to local drive - 05-11-2005 , 02:48 PM






koony wrote:
Quote:
:confused; Our school website www.tigertown.k12.mo.us is not setup correctly.
The links all reference to the W drive on the server instead of the http
address. If we view it from inside the network it views correctly. We think
that our problem was that we did not have the http address filled out in the
site definition section. How do we fix it now that the pages have been created?

Thanks

What you need to do is to make the image and link paths relative to the
document (except for external http:// links to other pages)

For example, this code:

file:///W|/

can be removed and the image would show up.

You can test this to be sure it works before trying it on your whole
site...just copy one of the pages. Then, in code view in DW, find a link
to an image (src) and select that portion of the path.

Then, press Ctrl+F (Cmd+F on mac) to bring up Find and Replace

This should load the selected code into the Find: field. Leave the
Replace: field empty. Set the Find In: menu Current Document and select
Source Code (probably selected already).

Replace all.

Save and test the page. The paths should be relative to the document
now. If all is well, you can do the same thing using Entire site,
assuming you don't have the site pages all sorted out into separate
folders. If you do, you might have to do the F&R for each folder because
the path to common_images would be one thing from a page at the root
level (common_images/) and another from a page inside an inner folder
(../common_images/ or something similar)....

The more serious issue is how the heck you got those paths all screwed
up like that to start with? Typically, if you define a site, you choose
the immediate folder that contains the site. Then, when you build links
to pages within the site, DW will use document relative paths.

Maybe you have not defined the site?

HTH, and feel free to ask for more help, if needed.

--
Donna Casey | Web Designer/Developer/Instructor
Team Macromedia Dreamweaver & Fireworks | www.macromedia.com/go/team
--------------------------------------------------------------------------
Co-Author | Macromedia Studio MX Bible
Contributor | Dreamweaver MX Magic
Contributor | Fireworks MX Magic


Reply With Quote
  #3  
Old   
koony
 
Posts: n/a

Default Re: everything linked to local drive - 05-12-2005 , 11:06 AM



:confused; We tried your suggestion on a few links, but did not seem to make a
difference?
How it got screwed up? That is a good question. I don't normally have
anything to do with the web site, just the web server and other servers, so I
have been playing detective to see what went wrong and when. Since the web
designer and students working on the site are using the same computer that has
always worked in the past, then I am also confused to how the site definition
got messed up. When I looked at the site definition settings yesterday, the
http address field was blank. I assume this should have their domain name
listed there?

Thanks



Reply With Quote
  #4  
Old   
Albaraha
 
Posts: n/a

Default Re: everything linked to local drive - 05-12-2005 , 11:25 AM



can you give us a link for the page please?

Reply With Quote
  #5  
Old   
koony
 
Posts: n/a

Default Re: everything linked to local drive - 05-12-2005 , 11:33 AM



www.tigertown.k12.mo.us

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.