WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • showmenu2 problem: "menu-first" not working / no link - SOLVED
  • Print
Pages: [1]   Go Down

Author Topic: showmenu2 problem: "menu-first" not working / no link - SOLVED  (Read 7436 times)

Offline KP

  • Posts: 66
  • Gender: Male
    • CREVIN
showmenu2 problem: "menu-first" not working / no link - SOLVED
« on: May 10, 2012, 05:32:02 PM »
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
« Last Edit: May 10, 2012, 08:19:01 PM by crevinamd »
Logged

jacobi22

  • Guest
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #1 on: May 10, 2012, 05:43:12 PM »
please post your menu-code like
show_menu2(.................)
Logged

Offline KP

  • Posts: 66
  • Gender: Male
    • CREVIN
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #2 on: May 10, 2012, 05:53:57 PM »
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 -->
Logged

Offline KP

  • Posts: 66
  • Gender: Male
    • CREVIN
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #3 on: May 10, 2012, 05:59:58 PM »
huh - looks funny when I posted last - I forgot to use the CODE button. Try this

Code: [Select]
<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 -->
Logged

jacobi22

  • Guest
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #4 on: May 10, 2012, 07:01:02 PM »
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: [Select]
<?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
        
);
                
?>

Logged

Offline KP

  • Posts: 66
  • Gender: Male
    • CREVIN
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #5 on: May 10, 2012, 07:36:05 PM »
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
Logged

jacobi22

  • Guest
Re: showmenu2 problem: "menu-first" not working / no link
« Reply #6 on: May 10, 2012, 07:48:22 PM »
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

Logged

Offline KP

  • Posts: 66
  • Gender: Male
    • CREVIN
Re: showmenu2 problem: "menu-first" not working / no link - SOLVED!
« Reply #7 on: May 10, 2012, 08:18:34 PM »
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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • showmenu2 problem: "menu-first" not working / no link - SOLVED
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2