This is an odd one - I've never had this happen and I'm stummped. I don't even know what to look for in the forum, so hopefully someone can help a baker out.
Here's the active website with the issue:
http://northernrockiesfinancialgroup.com
When you go to a SECOND LEVEL page, the "menu-first" link is non existent, so you cannot navigate back to the main page - in this case it is the "home" page.
Here is what the browser is generating, as you can see, no link on the home button. Any thoughts on why this is happening?
using Version 2.8.2 - Revision 1480
<!-- show_menu2 -->
<ul class="menu-top">
<li class="menu-sibling menu-first"><a href="" target="_top">Home</a> </li>
<li class="menu-expand menu-sibling"><a href="/pages/about-us.php" target="_top">About Us</a>
<ul class="">
<li class="menu-first menu-last"><a href="/pages/about-us/our-associates.php" target="_top">Our associates</a> </li>
</ul>
</li>
<li class="menu-current"><a href="/pages/what-we-do.php" target="_top">What We Do</a> </li>
<li class="menu-sibling"><a href="/pages/careers.php" target="_top">Careers</a> </li>
<li class="menu-expand menu-sibling menu-last"><a href="/pages/contact-us.php" target="_top">Contact Us</a> </li>
</ul>
Let me know if more info would be useful - thank you very much.
kevin
please post your menu-code like
show_menu2(.................)
My bad. There are 2 templates in use, but the exact same menu. Thanks again - that was the fastest reply I've ever seen!
<div class="menu">
<?php
show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '
- [a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '[ul]',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);
?>
</div> <!-- menu -->
huh - looks funny when I posted last - I forgot to use the CODE button. Try this
<div class="menu">
<?php
show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '[li][a][menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '[ul]',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);
?>
</div> <!-- menu -->
please try this, but i'm not sure - it works for me
you have a mix from the old showmenu to show_menu2, maybe thats the problem
here the "new" code
<?php
show_menu2(
$aMenu = 0,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_START,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '<li><a href="[url]" class="[class]">[menu_title]</a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul>',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);
?>
Good stuff. I really appreciate the updated show_menu2, but the problem persists.
I've never figured out how the CMS declares the first page as the "home" page. I tried switching the pages around and it's always the "menu-first" that is blank. I uninstalled show-menu2 and reinstalled it and no change.
Is there anything else related to the menu I'm missing here? I've built over 20 WB sites and never seen this. I wonder if there's some stray script somewhere that I'm just blind to.
Thanks again for the effort! seriously, I appreciate it.
kevin
do you have the relative Links in all the other WB-project's too or absolute links?
i found a post from matthias with the same problem here -> https://forum.WebsiteBaker.org/index.php/topic,22102.0.html
(last posting, but no answer)
please try to disable relative Links in AdminTools -> Frontend Output Filter
BOO YEAH -
Thanks. That was it. Sorry if I wasted your time. I couldn't find that thread for the couple hours I tried looking.
I'll have to look into why it works that way now :)
Thanks again.