HighDots Forums  

relative vs. absolute links - problems

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss relative vs. absolute links - problems in the Macromedia Dreamweaver forum.



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

Default relative vs. absolute links - problems - 02-01-2005 , 01:34 PM






Hi, I am a feelance designer and working with DW MX, Flash, Firewoks, etc. I
must have changed something, somewhere because pics don't display locally but
OK on server. When I click on an .htm file in a local folder the css isn't
linked in and inline pics don't display. And this problem happens sometimes on
the server also. I fixed the server issue with the <base href=...> tag, but the
pages don't display locally with this tag. This problem recently started. Is
there a preference that I messed up somewher. I've looked of the obvious and
came up blank, just like some of my local pages... :confused;


Reply With Quote
  #2  
Old   
Thierry | TJKDesign.com
 
Posts: n/a

Default Re: relative vs. absolute links - problems - 02-01-2005 , 01:38 PM






bab01824 wrote:
Quote:
Hi, I am a feelance designer and working with DW MX, Flash,
Firewoks, etc. I must have changed something, somewhere because pics
don't display locally but OK on server. When I click on an .htm file
in a local folder the css isn't linked in and inline pics don't
display. And this problem happens sometimes on the server also. I
fixed the server issue with the <base href=...> tag, but the pages
don't display locally with this tag. This problem recently started.
Is there a preference that I messed up somewher. I've looked of the
obvious and came up blank, just like some of my local pages...
:confused;
I don't see why you'd need <base hre="">
How do your links look like and what value are you giving to that tag?

--
Thierry | http://www.TJKDesign.com | CSS-P Templates compatible NN4.7
----------------------------------------------------------------------------
-
Quote:
CSS Popups | CSS Tabs | CSS Dropdown Menus | Articles and Tutorials |



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

Default Re: relative vs. absolute links - problems - 02-01-2005 , 01:40 PM



see ***** below

On the css link- what i'd do is use View-->Head Content, then click on the
css link icon in the head content bar. then use the property inspector to
the ***** steps to change it to doc relative.

canned letter #7

it's because you are using Site Root relative paths {they always start with
a leading / slash }, and then either trying to directly view the files from
your hard drive, which is happening when clicking a link on a dreamweaver
"Preview in Browser" page, or you are hosted in a subfolder of a domain like
http://myhost.com/~mysite/

Site Root relative paths won't work in those cases- in the first case
because site root is different than drive root, in the later because the
domain is the site root, not your subfolder.

If that's the reason- change to Document Relative paths if you want the
pages to preview when viewing directly from your hard drive.

*Also- if this site is hosted in a subfolder of a domain, like
http://myhost.com/mysite/ you should Not use site root relative paths with
dreamweaver- they will come out wrong when the files are uploaded.

The point to file and Insert image uses the Last linking method you have
chosen.

******To change linking methods********
select an existing image or link on the page.
in the Property inspector, click the folder icon, to open the "Browse to
File" dialog box. On the lower part of that dialog box is a pulldown, to
choose "Site Root Relative" or "Relative to Document"
Put it on "Relative to Document"
Finish picking the correct file, and click okay.

That setting will now stay that way until it's changed.
When you use the point to file tool, it will use that method of linking.

If you want to quickly change links to a different linking method- install
the Relativity Extension.
http://e7x.com/dw/ Relativity ext.
or here
http://www.microwaved.plus.com/dw/


Quote:
Hi, I am a feelance designer and working with DW MX, Flash, Firewoks, etc. I
must have changed something, somewhere because pics don't display locally but
OK on server. When I click on an .htm file in a local folder the css isn't
linked in and inline pics don't display. And this problem happens sometimes on
the server also. I fixed the server issue with the <base href=...> tag, but
the
pages don't display locally with this tag. This problem recently started. Is
there a preference that I messed up somewher. I've looked of the obvious and
came up blank, just like some of my local pages... :confused;



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

Default Re: relative vs. absolute links - problems - 02-02-2005 , 04:33 PM



That worked like a charm!!!!

That's a great extension! Thank you both for your replies.

Bruce Berger
Awwwsum.net

Reply With Quote
  #5  
Old   
Thierry | TJKDesign.com
 
Posts: n/a

Default Re: relative vs. absolute links - problems - 02-02-2005 , 05:41 PM



bab01824 wrote:
Quote:
That worked like a charm!!!!
That's a great extension! Thank you both for your replies.
Don't thank me, it's Alan who came up with the whole step by step thing and
link to the resource


Thierry




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 - 2008, Jelsoft Enterprises Ltd.