WebsiteBaker Support (2.8.x) > Templates, Menus & Design
ShowMenu2: Bootstrap Navigation
mr-fan:
may i write it too hard....but this are basic things.
i always get a little bit worried about "question-only-threats" without an effort for a solution and only the question for a ready-to-use solution asap.....so don't get me wrong ;)
and a "push" of a topic without the sign of own affords to get it solved is not the good practise in a OS forum....
so someone could say i've tested this and tried that and it won't work..."PUSH"
that yould we better instead of that post below...
I think if someone get in trouble with the SM2 together with a CSS Framwork he should think about go ahead?
CSS Framworks for "really" good looking layouts/templates are not easy to handle in a PHP Template...;)
regards mr-fan
nibz:
@mr-fan
I completely get where you're coming from.
And in global you are right, but to not get any further offtopic please on-topic from now ;)
neu1886:
Hello,
I thank all who have commented on the post. I did not want anyone to get too close. I actually know the rules of conduct in such a forum. Beg your pardon.
I test the code once.
nibz:
I bet you are using google translate?, (lol).
But you didn't offend me, but mr-fan is right in general that people take it to light, we are working for free, free cms, free forum. So in general people who ask questions should take more efford in trying to have a good nettiquete.
I hope the code posted works,
Please let me know if it works for you. Or if it doesn't work. Than we can take a look what's wrong.
noname8:
Thank you, seems to work with bs 3. However ie has problems with dropdown visibility if not latest or almost latest version.
--- Code: ---<div class="navbar" role="navigation">
<div class="container">
<div class="navbar-inner">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-collapse collapse navbar-collapse">
<?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+1,
$aMaxLevel = SM2_CURR+1,
$aOptions = SM2_ALL,
$aItemOpen = $open,
$aItemClose = '</li>',
$aMenuOpen = '<ul class="[if(level==1){nav navbar-nav} else {dropdown-menu}]">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);?>
</div>
</div>
</div>
</div>
--- End code ---
This one has the lang in the menu level 0 so the main nav is level 1.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version