This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > July 2005 > Path defaults to my C drive when I reload a page in DW.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Path defaults to my C drive when I reload a page in DW.
|
|
| thoyt59 2005-07-30, 7:26 pm |
| I have posted this question once before, but this time am putting coding with
it. My problem is that when I work on a page I have set up to refer to the
REMOTE server, the PATHS revert to my hard drive on my computer. See here the
path to the c drive? Originally, the path was:
"../../desinations/nola/listofbbs.htm". When I open the page in DW, it seems
to randomly revert all the paths so that I have to go t hrough and redo all of
them.
Thanks for any feedback.
The original page is:
http://roomfinderusa.com/french/des...lectlodging.htm
The paths to the c drive are here. You'll note that the paths on the URL
above are to the remote server folders.
<td width="11%" class="leftbar">
<div class="home"><a
href="file:///c|/sites/working/french/destinations/nola/listofbbs.htm"><img
src="file:///C|/Sites/working/french/destinations/images/redbuttonrequestanother
BBger.gif" width="115" height="110" border="0" alt="selectloc" /></a></div>
</td>
| |
|
| Am not sure I understand how you work. You open all files from the server?
If so, your site definition needs to reflect that. Also are you using the
Properties dialog to create your links (e.g., by selecting the files to link
to)? There you also need to define if the link is relative to the site root
or document.
According to your code below I think you type in the link, (your
capitalization in the file names is inconsistent), that might indicate that
the problem is in your site setup. Your live links should never have the
file:///... prefix, regardless of the drive letter.
M..
"thoyt59" <webforumsuser@macromedia.com> wrote in message
news:dcgs54$80e$1@forums.macromedia.com...
>I have posted this question once before, but this time am putting coding
>with
> it. My problem is that when I work on a page I have set up to refer to
> the
> REMOTE server, the PATHS revert to my hard drive on my computer. See here
> the
> path to the c drive? Originally, the path was:
> "../../desinations/nola/listofbbs.htm". When I open the page in DW, it
> seems
> to randomly revert all the paths so that I have to go t hrough and redo
> all of
> them.
>
> Thanks for any feedback.
>
> The original page is:
> http://roomfinderusa.com/french/des...lectlodging.htm
>
> The paths to the c drive are here. You'll note that the paths on the URL
> above are to the remote server folders.
>
> <td width="11%" class="leftbar">
> <div class="home"><a
> href="file:///c|/sites/working/french/destinations/nola/listofbbs.htm"><img
> src="file:///C|/Sites/working/french/destinations/images/redbuttonrequestanother
> BBger.gif" width="115" height="110" border="0" alt="selectloc"
> /></a></div>
> </td>
>
| |
| Murray *TMM* 2005-07-30, 11:16 pm |
| I think you are not grasping the concept of links.
You set up your local site, and create and link to the files in the local
site. When you upload the files, the exact folder structure in your local
site is mirrored on the remote site. If the link works in the local site
(after the file has been saved in the local site) then it will work on the
server, because the file/folder hierarchy is identical on them. This means
you do *not* think about linking to the remote files. You only think about
where you are linking within the context of your local site.
Now - try this. Create a new page in DW. Insert an image on it. Do not
save the
page. Look at the HTML markup. See the link to the image? It should look
like this -
<img src=''file://C|whatever.gif..._.''
Note that the link is pointing to a file on your hard drive. This is
because DW doesn't know yet where you are going to save the file. Now save
that file within your current site, and look at the HTML markup again. You
should see something like this -
<img src=''whatever.gif'' (if you are using document relative links), or
this -
<img src=''/whatever.gif'' (if you are using root relative links)
Now save the file again, only save it *OUTSIDE* the current site. Look at
the HTML markup and you should see something like this -
<img src=''file://C|whatever.gif..._.''
This is because you have saved the file outside the current site, and DW
must use an absolute (local) link to the image to keep track of it.
Clearly those absolute (local) links will not work when you push this file
to the web - it cannot display an image that is on YOUR hard drive.
So - are you saving outside the local site? The file:/// links you show are
exactly what I would expect to see if you were either doin gthis, or linking
to images outside the site, and then not copying them within.
--
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
==================
"thoyt59" <webforumsuser@macromedia.com> wrote in message
news:dcgs54$80e$1@forums.macromedia.com...
>I have posted this question once before, but this time am putting coding
>with
> it. My problem is that when I work on a page I have set up to refer to
> the
> REMOTE server, the PATHS revert to my hard drive on my computer. See here
> the
> path to the c drive? Originally, the path was:
> "../../desinations/nola/listofbbs.htm". When I open the page in DW, it
> seems
> to randomly revert all the paths so that I have to go t hrough and redo
> all of
> them.
>
> Thanks for any feedback.
>
> The original page is:
> http://roomfinderusa.com/french/des...lectlodging.htm
>
> The paths to the c drive are here. You'll note that the paths on the URL
> above are to the remote server folders.
>
> <td width="11%" class="leftbar">
> <div class="home"><a
> href="file:///c|/sites/working/french/destinations/nola/listofbbs.htm"><img
> src="file:///C|/Sites/working/french/destinations/images/redbuttonrequestanother
> BBger.gif" width="115" height="110" border="0" alt="selectloc"
> /></a></div>
> </td>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|