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

ShowMenu2: Bootstrap Navigation

<< < (5/9) > >>

zirzy:

--- Quote from: nibz on September 06, 2013, 11:07:20 AM ---I updated the code above (the one for 2.3.2)

And here is an example for  3,0

--- Code: ---<nav class="navbar navbar-default" role="navigation">
<?php 
$open = '<li class="[if(class=menu-current||class=menu-parent){active}] [if(class==menu-expand){dropdown}]">
[if(class==menu-expand){<a href="[url]" class="dropdown-toggle" data-toggle="dropdown">[menu_title] <b class="caret"></b></a>}else {<a href="[url]">[menu_title]</a>}]';
show_menu2(
$aMenu          = 1,
$aStart         = SM2_ROOT, 
$aMaxLevel      = SM2_CURR+1,
$aOptions       = SM2_ALL,
$aItemOpen      = $open,
$aItemClose     = '</li>',
$aMenuOpen      = '<ul class="[if(level==0){nav navbar-nav} else {dropdown-menu}]">',
$aMenuClose     = '</ul>',
$aTopItemOpen   = false,
$aTopMenuOpen   = false
);?>
</nav>

--- End code ---

--- End quote ---

Why 4th level is not showing on dropdown? 3th level links with carret is not active at all  :|


-zirzy

jacobi22:

--- Quote ---Why 4th level is not showing on dropdown? 3th level links with carret is not active at all
--- End quote ---

please check at first your wb-setting -> advanced setting
look there to LIMIT of Levels or something like this, set it up to max = 10

zirzy:

--- Quote from: jacobi22 on December 18, 2015, 02:29:17 PM ---
--- Quote ---Why 4th level is not showing on dropdown? 3th level links with carret is not active at all
--- End quote ---

please check at first your wb-setting -> advanced setting
look there to LIMIT of Levels or something like this, set it up to max = 10

--- End quote ---

I got 6 and still dont work..

nibz:
i have limited the numer of levels, see $aMaxLevels.

I did this because:

--- Quote from: nibz on July 16, 2014, 08:37:05 PM ---Hi dbs.

I'm sorry to say but bootstrap themselve took out the 3rd level from the navbar

--- Quote ---"Submenus just don't have much of a place on the web right now, especially the mobile web. They will be removed with 3.0" - https://github.com/twbs/bootstrap/pull/6342

--- End quote ---

But over here they show that it is possible with some extra CSS: http://stackoverflow.com/a/18024991

Hope you can get it working the way you want! ;)
If you still can't don't hessitate to ask again here in the forum then i will take a look what i can do (no guarantees)

--- End quote ---

zirzy:

--- Quote from: nibz on December 18, 2015, 05:00:00 PM ---i have limited the numer of levels, see $aMaxLevels.

I did this because:

--- Quote from: nibz on July 16, 2014, 08:37:05 PM ---Hi dbs.

I'm sorry to say but bootstrap themselve took out the 3rd level from the navbar

--- Quote ---"Submenus just don't have much of a place on the web right now, especially the mobile web. They will be removed with 3.0" - https://github.com/twbs/bootstrap/pull/6342

--- End quote ---

But over here they show that it is possible with some extra CSS: http://stackoverflow.com/a/18024991

Hope you can get it working the way you want! ;)
If you still can't don't hessitate to ask again here in the forum then i will take a look what i can do (no guarantees)

--- End quote ---

--- End quote ---

But why isn't link with caret (arrow) working in drop down menu? All other links are working but links with arrow isn't.. If level is greater than SM2_CURR+1 there comes this arrow thing and link does not work.  So how can I fix it? :)

zirzy



Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version