close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Items linked to a page 2 folder levels up do not display proper links

Thread began 11/03/2009 7:55 am by douvan45548 | Last modified 11/03/2009 2:58 pm by Eric Mittman | 2940 views | 8 replies |

douvan45548

Items linked to a page 2 folder levels up do not display proper links

The horizontal menu works here:
LearningSolutions.asp

However when you click on a menu item from level 2:
IndividualEffectiveness.asp

The CSS menu doesn't link properly from the page. This appears to occur only with pages where the CSS menu item is linked to a page located 2 folder up in the file system.

Sign in to reply to this post

neilo

In your site definitions (manage sites) - have you set linking to be relative to document or site root?

Check to make sure it is set to be relative to document.

Sign in to reply to this post

neilo

Hi

Your (part) menu code from IndividualEffectiveness.asp looks like this:

<li class="parent link"><span class="link"><a class="link" href="../LearningSolutions.asp">Learning Solutions</a></span>
<ul class="level-1">
<li class="parent link"><span class="link"><a class="link" href="../LearningSolutions/Expertise.asp">Areas of Expertise</a></span>
<ul class="level-2">
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/IndividualEffectiveness.asp">Individual Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/TeamEffectiveness.asp">Team Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/OrganisationalEffectiveness.asp">Organisational Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/SalesEffectiveness.asp">Sales Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/LeadershipEffectiveness.asp">Leadership Effectiveness</a></span></li>
</ul>


In the level 2 menu links, the '../LearningSolutions/' part of the link is telling the browser to go back one directory and then look for a(nother) 'LearningSolutions' directory inside the 'LearningSolutions' directory.

So for instance, that last link takes you to:

www.insightstoronto.com/*LearningSolutions/LearningSolutions*/Expertise/LeadershipEffectiveness.asp

not:

www.insightstoronto.com/*LearningSolutions*/Expertise/LeadershipEffectiveness.asp

Sign in to reply to this post

douvan45548

Originally Said By: neilo
  Hi

Your (part) menu code from IndividualEffectiveness.asp looks like this:
<li class="parent link"><span class="link"><a class="link" href="../LearningSolutions.asp">Learning Solutions</a></span>
<ul class="level-1">
<li class="parent link"><span class="link"><a class="link" href="../LearningSolutions/Expertise.asp">Areas of Expertise</a></span>
<ul class="level-2">
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/IndividualEffectiveness.asp">Individual Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/TeamEffectiveness.asp">Team Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/OrganisationalEffectiveness.asp">Organisational Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/SalesEffectiveness.asp">Sales Effectiveness</a></span></li>
<li class="link"><span class="link"><a class="link" href="../LearningSolutions/Expertise/LeadershipEffectiveness.asp">Leadership Effectiveness</a></span></li>
</ul>

In the level 2 menu links, the '../LearningSolutions/' part of the link is telling the browser to go back one directory and then look for a(nother) 'LearningSolutions' directory inside the 'LearningSolutions' directory.

So for instance, that last link takes you to:

LeadershipEffectiveness.asp

not:

LeadershipEffectiveness.asp  




You have described the problem perfectly. This is what I am trying to fix. Of course I'm still looking for the solution. The problem occurs only when you are on one of the second level directory pages and are trying to use the menu.

The whole site uses the same SSI file:
upnav.htm

Why does the menu fail to function only when displaying pages which are 2 folder levels up as linked from the menu?

Sign in to reply to this post

neilo

Hi douvan45548,

From the code of your menu includes file:

<ul class="level-2">
<li><span><a href="../LearningSolutions/Expertise/IndividualEffectiveness.asp">Individual Effectiveness</a></span></li>
<li><span><a href="../LearningSolutions/Expertise/TeamEffectiveness.asp">Team Effectiveness</a></span></li>
<li><span><a href="../LearningSolutions/Expertise/OrganisationalEffectiveness.asp">Organisational Effectiveness</a></span></li>
<li><span><a href="../LearningSolutions/Expertise/SalesEffectiveness.asp">Sales Effectiveness</a></span></li>
<li><span><a href="../LearningSolutions/Expertise/LeadershipEffectiveness.asp">Leadership Effectiveness</a></span></li>


Presumably the code as written to html here has '../LearningSolutions/' because the menu is situated in the 'incl_files' directory and therefore needs to refer to directories one level higher than itself. So this code works fine directly from the upnav.htm includes file.

However, when the code is written to html in the actual page that contains the include, then that same code will direct wrongly (as if it is linking from the 'incl_files/upnav.htm' pafe, not the currently loaded page).

Not sure if I've explained my thinking too well here. The only thing I can think of while keeping this as an include file, is (against my earlier advice) to make all links relational to site root, or use absolute paths in the links.

Sign in to reply to this post

douvan45548

Originally Said By: neilo
  Hi douvan45548,

Presumably the code as written to html here has '../LearningSolutions/' because the menu is situated in the 'incl_files' directory and therefore needs to refer to directories one level higher than itself. So this code works fine directly from the upnav.htm includes file.  




Neilo,

Thanks again for trying. The problem is still unresolved.

The flaw in this logic is as follows:

The menu code works fine in the same directory as the include file, it also worlds one level above. It simply does not work two levels above.

Sign in to reply to this post

neilo

Hi douvan45548

<ul class="level-0" id="cssmw">
<li><span><a href="#">Home</a></span></li>
<li class="parent"><span><a href="../LearningSolutions.asp">Learning Solutions</a></span>
<ul class="level-1">
<li class="parent"><span><a href="../LearningSolutions/Expertise.asp">Areas of Expertise</a></span>


Yes, odd. Looks like it's getting the level-0 items correct (../LearningSolutions.asp) but not the level-1+

Absolute paths or rel to site root may be the easiest solution. Hope you post back when you solve it! Sorry couldn't help.

Sign in to reply to this post

Eric Mittman

I have opened a ticket for you on this issue, please login to the site and visit your support history to update the ticket.

neilo, I accidentally opened one for you on this topic, you can just close it.

Sign in to reply to this post

douvan45548

Originally Said By: neilo
  In your site definitions (manage sites) - have you set linking to be relative to document or site root?

Check to make sure it is set to be relative to document.  




Thanks for your suggestion.

The site definition was set to be relative to document.

Do you have any other solutions?

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...