WebsiteBaker Support (2.8.x) > Templates, Menus & Design
ShowMenu2: Bootstrap Navigation
neu1886:
*P U S H* ;)
nibz:
I am very sorry i didn't respond.
Had a very busy week. Will have a day off tomorrow and then i will take a look. ;-).
Gr. Robin
mr-fan:
Push your self too.... :evil:
there is a tool like http://bootstrap3.kissr.com/
there you put the HTML outpu of the SM2 Snippet from nibz......and get the 3.0 HTML Output should look alike....
so far you see how the HTML of the SM2 call is set and you could try change it to your needs...
if someone work with a CSS Framwork he should be able to do that?
but it's always easier to wait other do this work completly
regards mr-fan
nibz:
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 ---
nibz:
--- Quote from: mr-fan on September 06, 2013, 10:34:03 AM ---Push your self too.... :evil:
--- End quote ---
Hi mr-fan,
It wasn't just the problem of the upgrade to a newer version of bootstrap.
I was missing a short little code to also set the menu parent li item to active (i allready knew that i was missing that!, but didn't take the time then to look how i can put it in), everything works now.
And i also don't know if neu1886 uses bootstrap3, because the code i sent first is for 2.3.2.
But since i had the time i converted a version for 3.0.
Thanks for the comment though!, i also think that if you work with these frameworks you need to know some things of the framework before you work with it.
Greets Nibz.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version