HighDots Forums  

file path help needed : make forward slash go away

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss file path help needed : make forward slash go away in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hanek webforumsuser@macromedia.com
 
Posts: n/a

Default file path help needed : make forward slash go away - 07-18-2003 , 04:39 AM






Thank you for your time,

When i make a link using either text or image via the "point-link" method, DW keeps placing a forward slash before the link name, ie. /index.htm When i try to view the document using F12, none of the images are displayed. However, if i remove the preceding forward slash from the path to the images and the html document, the page loads fine. As a matter of fact, the preceding forward slash is also loading on my stylesheet, ie. /stylesheet.css resulting in a full page of text with absolutly no css effect. Again, if i remove the forward slash then the styles work on the page.

How do i remedy this problem??

The file pathing is set up as follows:

(-) Site - Ozcan (root folder) (D:/Web)

+ - images (folder)
Quote:
- index.htm
- page1.htm
- page2.htm
- page3.htm
- page4.htm
- stylesheet.css


Again, thanks for your time.
Hanek





Reply With Quote
  #2  
Old   
CHawke webforumsuser@macromedia.com
 
Posts: n/a

Default Re: file path help needed : make forward slash go away - 07-18-2003 , 04:48 AM






You may not want to - the first / is what is known as a root relative path and can be a good thing.

I'd advice you read

http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm

and

http://www.macromedia.com/support/dreamweaver/ts/documents/document_vs_site.htm

and
http://www.macromedia.com/support/dreamweaver/ts/documents/path_types.htm

Before making your mind up

CH



Referring URLs
http://www.macromedia.com/support/dreamweaver/ts/documents/site_root_rel.htm
http://www.macromedia.com/support/dreamweaver/ts/documents/document_vs_site.htm
http://www.macromedia.com/support/dreamweaver/ts/documents/path_types.htm



Reply With Quote
  #3  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: file path help needed : make forward slash go away - 07-18-2003 , 05:16 AM



"Hanek" webforumsuser (AT) macromedia (DOT) com wrote:

Quote:
Thank you for your time,

When i make a link using either text or image via the "point-link" method, DW keeps placing a forward slash before the link name, ie. /index.htm When i try to view the document using F12, none of the images are displayed. However, if i remove the preceding forward slash from the path to the images and the html document, the page loads fine. As a matter of fact, the preceding forward slash is also loading on my stylesheet, ie. /stylesheet.css resulting in a full page of text with absolutly no css effect. Again, if i remove the forward slash then the styles work on the page.

How do i remedy this problem??
You are using root relative paths as opposed to document relative paths.
To use the latter, do this:
When linking a file, you get the dialog window which you're using to
navigate to the file in question. At the bottom of that window, there's
a small drop down menu that allows you to select root relative or
document relative. Select the latter and never touch it again, unless
you have very good reasons....

HTH

--
Dan Vendel - *GOF*
http://www.vendel.info
Contact me directly by clicking here:
http://contact.vendel.info
Formmail tutorial:
http://www.vendel.info/tut/formmail.html
Nested table demonstration:
http://www.vendel.info/tabletut/



Reply With Quote
  #4  
Old   
Hanek webforumsuser@macromedia.com
 
Posts: n/a

Default Re: file path help needed : make forward slash go away - 07-18-2003 , 06:56 AM



Thanks Dan,

Your advice did the trick!!

Han



Reply With Quote
  #5  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: file path help needed : make forward slash go away - 07-18-2003 , 06:59 AM



"Hanek" webforumsuser (AT) macromedia (DOT) com wrote:

Quote:
Thanks CH for your reply.

I read the documents you suggested and i learned a lot.
However, i think i will remain with "document - relative paths".

The strange point is that i've built many website before this one and i have never experienced this problem before. As soon as i chose a link, DW automatically designated the image or link as "document-relative". Why is it suddenly forcing me to choose now and subsequently forcing me to delete the "/" at the beginning of the path? Needless to say it's very time consuming... and time is money

It's possible that i screwed myself by moving the site folder or documents in the site into another folder.

Can you (or anyone) please explain to how to get that simple, easy going "document-related" pathing process back for me, without having to make and slash deletions?

Again, i really appreciate your time!!



You could try a Find & Replace, but BACKUP the site first!
Find code, entire local site: <a href="/
replace with: <a href="
and
Find: <img src="/
replace with: <img src="

HTH

--
Dan Vendel - *GOF*
http://www.vendel.info
Contact me directly by clicking here:
http://contact.vendel.info
Formmail tutorial:
http://www.vendel.info/tut/formmail.html
Nested table demonstration:
http://www.vendel.info/tabletut/



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.