WebsiteBaker Support (2.8.x) > Templates, Menus & Design

showmenu2 problem: "menu-first" not working / no link - SOLVED

(1/2) > >>

KP:
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

jacobi22:
please post your menu-code like
show_menu2(.................)

KP:
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 -->

KP:
huh - looks funny when I posted last - I forgot to use the CODE button. Try this


--- Code: ---<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 -->
--- End code ---

jacobi22:
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


--- 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
        );
                ?>
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version