Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 3
Name: Jesse
Location: Indiana
Trades: 0
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
 
 
Register now for full access!
Old 04-30-2008, 02:13 PM Re: Inconsistant Linking Troubles...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-01-2008, 06:13 PM Re: Inconsistant Linking Troubles...
CptBackfire's Avatar
Junior Talker

Posts: 3
Name: Jesse
Location: Indiana
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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.61799 seconds with 12 queries