This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > Template problem - unusual file path behaviour
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 |
Template problem - unusual file path behaviour
|
|
| mummybot2 2006-02-24, 10:13 am |
| Hello all,
I have a very unusual problem. I have built a small site for a client which
they will be able to add new pages via a basic template system.I built the
website using Dreamweaver 7.0 and everything works perfectly on my setup.
I have put the exact folder structure in a zip, and have replicated the site
structure identically on their machine. In the site definition I have the links
set to relative. They are using Dreamweaver 8, but previously they had a
version of Dreamweaver 4 installed on their computer.
The problem:
The template file (.dwt) contains the link href="resources/css/style.css"
When a new document is first created the path becomes something not unlike
href="file:///c:/documents%20Settings.../Templates/resources/css/style.css"
When I first save the file, it then puts the relative URL in. The confusing
bit is that it leaves the Template folder in the path!
So the URL becomes href="Templates/resources/css/style.css"
This does not happen on my machine using DW7 - it doesn't include the
Templates folder in the URL. This obviously then breaks every page.
I am currently getting my client to completely uninstall both versions of
Dreamweaver, and reinstall only 8, in the hope that there is some form of
conflict. Any feedback or possible explanations would be greatly appreciated.
Cheers,
Francis
| |
| mummybot2 2006-02-24, 10:13 am |
| To add to this discussion, the uninstall of both packages and reinstall has not addressed the issue.
| |
|
|
> The template file (.dwt) contains the link href="resources/css/style.css"
If you want to link to a single file that's at the root level of the site-
change the link so it works in the template.
href="../resources/css/style.css"
run the link check on the template file- all links should work in the
template.
if you want to link to different files, relative to the folder the child
file is saved to, that's a different matter.
Such as if the page is in folderA, you want to link to folderA/style.css
and if in folderB, link to folderB/style.css
If that's what you want, pls clarify.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|