Reply
Inconsistant Linking Troubles...
Old 04-30-2008, 12:35 PM Inconsistant Linking Troubles...
CptBackfire's Avatar
Junior Talker

Posts: 3
Name: Jesse
Location: Indiana
Background
I recently started to clean up an old site that I made a year ago and is on my HD. Since it's creation I have moved the site file to a different location and upgraded from Dreamweaver 8 to CS3. Though I updated all the links when moving the file, and manually changed any that gave me issues (such as a few image links) I am having issues when linking to pages.

Problem
I have a Template made which the whole site is made from. While previewing the site, (say the home page for example), I can click on a link in the navigation bar (which is a part of the Template) and get to any one of my other pages in the site. However every time I try to access another page in my site from the nav bar, it comes back unfindable.

The interesting part is that if I click on a link that is NOT a part of the template before I try the nav bar the second time, I can then use the nav bar once more before it kicks back an unfindable. Basically so long as I keep alternating links from one created in the template to one created in the actual page, I can run through the site fine. The first time I try to use a template link twice though, it fails.

Observations
In Dreamweaver I have tried using the "drag and drop" method for the page links, and I have also tried manually typing them in. Neither works.

I think the problem is with my folder structure or the way the link is worded...
My folder structure looks like this:
SiteFolder
>Templates
>>newTemplate
>Pages
>>home
>>links
>>aboutUs
>>profiles
>>ourWork
>Images
>>image1
>>image2
>>etc...

For every link, I have the tag:
../Pages/(pageName).html
so that it should work from a the template folder OR the pages folder.

Every time i get the error message, the folder address is simply incorrect. It reads:
/SiteFolder/Pages/Pages/(pageName).html

Chances are I am overlooking something painfully obvious that i will cry on the inside when I find out how simple it really is, but any help or ideas are appreciated.
CptBackfire is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-30-2008, 01:13 PM Re: Inconsistant Linking Troubles...
chrishirst's Avatar
Super Moderator

Posts: 11,505
Location: Blackpool. UK
your problem is in using the ../ syntax. This actually sends the link to the folder above the current.

use root relative addressing eg: "/folder/pagename.ext" and set the DW anchor dialog to root relative rather than document relative
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-01-2008, 05:13 PM Re: Inconsistant Linking Troubles...
CptBackfire's Avatar
Junior Talker

Posts: 3
Name: Jesse
Location: Indiana
I had that done before. My whole site is done root relative, which is why I am a little confused...

I know that the ../ tag means one folder up. It doesn't preview at all if I don't include that tag. If you notice, if i am in the pages folder, and look one up, then look for pages and then a page name, it should just go back into the folder i was in. Whereas if I am in templates, it will now backtrack out of templates and go into the right folder.

Maybe I should take it out, and just include the name of the page I'm trying to access. It would show up as a broken link in the template but it should work for the pages...

I don't know. Maybe I am assuming too much of the computer. I do that from time to time.
__________________
I'm not slaking off.
My code's compiling.
CptBackfire is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Inconsistant Linking Troubles...
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12820 seconds with 13 queries