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