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

Madoven - Bootstrap Template

<< < (5/7) > >>

dbs:
Hi, has somebody a dropdown-menu integrated?

nibz:
This topic could maybe help getting it working;
http://www.WebsiteBaker.org/forum/index.php?topic=26238.0

nibz:
So i just tested it (submenu code) and it works:

Replace: (around line 46)

--- Code: ---<?php show_menu2(0,SM2_ROOT,SM2_START, null,'[if(class==menu-current){<li class="active">}else{<li>}][a][menu_title]</a>','</li>','<ul class="nav navbar-nav">','</ul>');?>

--- End code ---

With

--- Code: ---<?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
);?>

--- End code ---

dbs:
Thx for the link and your test.
The solution works for a menu with 1 submenu-level.

I need additional a sub-submenu. After hours of testing i lost my mind.
At the moment the dropdown opens by mouseover and the sub-submenu is a flyout right. Works for me.

--- Code: ---<?php show_menu2(0,
                 SM2_ROOT,
                 SM2_ALL, 
                 SM2_ALL|SM2_NO_TITLE ,'
 [if(class==menu-current && class!=menu-expand){<li class="active"><a class="[class]" href="[url]">[menu_title]</a>}]
 [if(class==menu-expand){<li class="[class] dropdown  pid[page_id]"><a class="[class]"  href="[url]">[menu_title]&nbsp;&nbsp;&#38;#10023;</a>}]
 [if(class!=menu-expand && class!=menu-current){[li]<a class="[class]" href="[url]">[menu_title]</a>}]',
 '</li>',
                 '<ul class="dropdown-menu" role="menu">',
                 '</ul>',
                 false,
                 '<ul class="nav navbar-nav">'
); ?>
--- End code ---

nibz:
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)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version