I have been creating new pages based on a template with no problem until recently. Now all new pages that I create based on my template have improper links in the top and bottom navigation bars.
Here is a page that I created earlier that is working fine: http://www.rcdhu.com/about.html
Here is a page that I created recently and the top and bottom navigation bars have links that don't work: http://www.rcdhu.com/events-May-21-27.html. The links in the original template look fine!
I don't know what is going wrong and any suggestions are greatly appreciated!
Hello,
looking to your source code I found some of these wrong pathes like:
"<LINK REL="SHORTCUT ICON" HREF=file:///H|/RCDHU Website/rcdhu/images/favicon.ico>"
or
"<ul id="topnav">
<li><a href=file:///H|/RCDHU Website/rcdhu/index.html>Home</a></li>
<li><a href=file:///H|/RCDHU Website/rcdhu/about.html>About Us</a></li>
<li id="classes"><a href=file:///H|/RCDHU Website/rcdhu/Pages/Home/clinics-classes.html>Clinics and Classes</a></li>"
The pathes to your links are pointing to a file on your local hard drive which nobody can see except you. So you only you have to control and adapt accordingly your pathes.
Hans-Günter
I can see what the problem is but I don't know how to change it. The template itself looks fine, with links like this:
<ul id="topnav">
<li><a href =../index.html>Home</a></li>
<li><a href=../about.html>About Us</a></li>
etc.
But when I create the file based on the template it puts in those links that go to my H drive and I can't change them. I can only make changes to the original template, then update the files based on the template.
There doesn't seem to be anything wrong with the template...or is there?
Hello,
please have look here: http://forums.adobe.com/thread/910402?tstart=0, where Gramps and Murray give their comments and solutions to modify a template.
Good luck!
Hans-Günter
P.S.
I for my part prefer Gramps' opinion and so I still prefer the old fashioned way without dwt's.![]()
There are a few things that can cause this. First, check your site definition to make sure your local and remote sites are still properly defined. Without a properly defined site, DW can not manage links properly. Second, make sure the template is in the Templates folder. It won't work otherwise. Finally, tell us your workflow for creating the child pages from the template.
Site definition: I went to Site - Manage Sites - Edit and looked at everything under "Site Setup for rcdhu". It looks fine but I'm not sure if I'm missing something.
I did notice that there is an option "If your site uses templates, you can avoild relative paths being rewritten in existing pages when templates are updated," and "Don't rewrite relative document paths" is checked. I am not sure what this means!
Template location: Yes it is in the Templates folder
Workflow for creating child pages: I select File - New - Page from template - (select the site) - (select the template) - "Update page when template changes" is checked - Create. This creates a file that is not named or saved yet. When I look at the file in code view ALL of the links are going to the H drive. When I save the file to a location/give it a name the links in the spry vertical menu bar are correct but the links in the top and bottom navigation bars are still going to the H drive.
A solution: I tried opening a page that has correct links and "save as" to create a new page that I can copy the content that I want into. Replaced the page with the wrong links with this new page. This seems to have worked fine but I hope it doesn't cause grief later. (Will these pages update the same as all the other pages created directly from the template when I need to update the template?)
North America
Europe, Middle East and Africa
Asia Pacific