Forums

This topic is locked

Setting 'Absolute Link' as default

Posted 08 May 2007 02:30:18
1
has voted
08 May 2007 02:30:18 Tolo Ekot posted:
I have searched and cannot find how to set Dreaweaver 8.0 to use only <b>Absolute paths</b>. I see on the <b>Site Definition</b> dialog window under the <b>Advanced</b> tab inside the <b>Local Info</b> category that you can set either <b>Document</b> relative or <b>Site root</b> relative paths.

I use Dreamweaver to make a site and publish it to a server. I then go to that site and view the source after I know it looks good on a number of browsers and computers. I copy the source HTML text between the <i>Body</i> tags and paste it as an eBay description. The problem occurs when the images are referred to not using the full <b>Absolute paths</b>.

If some one can give me a clue on how I might get around this problem w/o having to paste the beginning part of my servers URL in the code by hand it would greatly be appreciated. Thanks so much for any help any one can offer.


~Rekottop

Replies

Replied 09 May 2007 04:14:56
09 May 2007 04:14:56 Alan C replied:
Absolute paths sounds like the one you want, it forces DW to set up paths that always start with a slash <pre id=code><font face=courier size=2 id=code>/ </font id=code></pre id=code> so they always relate to the top level of your site. That's the one I use all the time so I can cut and paste from one page to another without worrying about paths - I'm not sure how you would get on with pasting into ebay though - their paths might be different. Give it a try and see what happens <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 09 May 2007 18:32:04
09 May 2007 18:32:04 Tolo Ekot replied:
Thanks for the reply Alan C. It is really appreciated.

The Site-root relative paths are the ones that start with a / (slash) and refer to the root of a website. The thing is once I copy the code and post it to a different site the site-root relative paths no longer work because they are trying to refer to the root of the new website I pasted the code to. In this case it would be eBay. My pictures are not stored on eBay, they are stored on a different website. What I need is DW to generate my code using a full URL on every link I make. Weather the link is a refacing a file outside my defined site or within my site. I need every link to begin with the prefix. Is there a way to get DW to do that? Thanks again for any info you can provide.

~Rekototp
Replied 11 May 2007 18:20:01
11 May 2007 18:20:01 Alan C replied:
mmm, I'm not sure you will be able to do that - it's something I've not done, but there is a root url that you can set in the site definition, then dw makes links relative to that, it might be worth trying that although I think it would set all links from there.

Maybe you could do a find and replace on the code although it's starting to get messy doing that.

Sorry I'm not a lot more help.
Replied 12 May 2007 06:01:54
12 May 2007 06:01:54 Tolo Ekot replied:
Yes, find and replace, that is what I am going to have to do. All my links say something like "/images/picture.jpg" and I need it to say "members.cox.net/membername/images/picture.jpg" A find and replace will be the simplest solution since DW doesn't have a way to set it up that way. Seems too bad to because DW is such a versatile program that you would think something as simple as using ABSOLUTE, DOCUMENT-RELATIVE, or SITE ROOT-RELATIVE paths would be a standard setting. Seems odd to me that they would leave out using ABSOLUTE paths option out.

Well thank you very much Alan C for you help. I really appreciate it.

Sincerely
~Tol'o EKot

~Rekottop
This reply was removed on 1/19/2013 3:51:55 AM.
See the changelog

Reply to this topic