This is how DMX will work if you are using ROOT RELATIVE links, *and*
temporary files to preview.
Here's an example -
* I create a page with a link to an image -> <img src="/images/foo.gif">
(note that the image link is a root relative link)
* I preview that page with DMX (since I am using temp files, DMX is kind
enough to realize that root relative links won't work in a preview, and so
it converts them to document relative links when it builds the temporary
file for the preview) -> <img src="../images/foo.gif"> (I'm assuming that
your document is one level below the root of the site). In the preview,
this page looks fine because the browser has no trouble with the document
relative link - it knows where the file it just opened is, and can follow
the path to the image).
* I then click on a link in the previewed page to another page that also has
ROOT relative linked images --> <img src="/images/bar.gif"> and suddenly
the image does not load.
Why? Because when you click away from the temp file DMX just built for you,
you have lost the benefit of the automatic conversion that DMX does with
root relative links, and the browser looks for this new image starting from
the root of the hard drive, not the root of your site.
The solution is to not use root relative links, and to change all your
existing ones to document relative.
To read more about this, go here -
http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm
http://www.macromedia.com/support/dreamweaver/ts/documents/document_vs_site.htm
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"dcd1234" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
Hello,
This is my first time to use Dreamweaver. Have used Front Page 2003 to
upload
many sites. I am using a DW template for a client. have the pages done
and
they look five in DW design view. When I view in IE, the original page
comes
up nice, but the links either show no file available or it comes up as if
the
CSS is not being read. It is an external sheet that was part of the
template.
I have it locked, so I do not believe it has bee inadvertently changed. I
have
tried the link check and it shows no broken links. I looked at the CSS
and it
seems correct. I have looked to dee if its relative paths are correct and
I
believe they are. Can you give me an idea where to look? Or do I need to
keep
digging in the same areas. I am running out of time for delivery and I do
not
want to copy into FP2003 to finish.
Thanks.
Dennis |