WebsiteBaker Support (2.8.x) > Templates, Menus & Design
ShowMenu2: Bootstrap Navigation
nibz:
The url is missing.
Try this:
--- Code: ---<?php
$open = '<li class="[if(class=menu-current||class=menu-parent){active}] [if(class==menu-expand){dropdown}]">[if(class==menu-expand&&level==1){<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_START+1,
$aOptions = SM2_ALL,
$aItemOpen = $open,
$aItemClose = '</li>',
$aMenuOpen = '<ul class="[if(level==1){nav navbar-nav}] [if(level==2){dropdown-menu}]">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);
?>
--- End code ---
zirzy:
--- Quote from: nibz on January 04, 2016, 09:38:13 PM ---The url is missing.
Try this:
--- Code: ---<?php
$open = '<li class="[if(class=menu-current||class=menu-parent){active}] [if(class==menu-expand){dropdown}]">[if(class==menu-expand&&level==1){<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_START+1,
$aOptions = SM2_ALL,
$aItemOpen = $open,
$aItemClose = '</li>',
$aMenuOpen = '<ul class="[if(level==1){nav navbar-nav}] [if(level==2){dropdown-menu}]">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false
);
?>
--- End code ---
--- End quote ---
Isn't that the same as my option 2? Did not work the way I needed :) Dropdown is correct but when I klick menu link where is "arrow" (level 1) only dropdown opens, I can not enter to the page..
Ok, here is a pic of the menu and if I klick that LR menu link --> dropdown opens. If I klick LR menu link two times --> dropdown desapears. But if I wanna go to the LR page, I can not acces that page. I can acces only pages LR-kategoria 1 and LR-kategoria 2, but not the LR page.
What can I do to acces LR menu link page? :)
-zirzy
nibz:
Hi zirzi,
I think this is a problem with bootstrap not with showmenu2.
Maybe this is a solution: https://github.com/mrhanlon/twbs-dropdown-doubletap
Kind regards
Nibz
nibz:
I checked this, bootstrap doesn't support this.
There are several workarounds on the web but i can't get them to work.
I googled: bootstrap navbar parent clickable
and got e.g. this answer: http://stackoverflow.com/questions/25692514/bootstrap-how-do-i-make-dropdown-navigation-parent-links-an-active-link
If you have more questions regarding this issue you should post them at a bootstrap forum because this has nothing to do with WebsiteBaker.
Kind regards,
Nibz
zirzy:
--- Quote from: nibz on January 05, 2016, 08:09:21 PM ---I checked this, bootstrap doesn't support this.
There are several workarounds on the web but i can't get them to work.
I googled: bootstrap navbar parent clickable
and got e.g. this answer: http://stackoverflow.com/questions/25692514/bootstrap-how-do-i-make-dropdown-navigation-parent-links-an-active-link
If you have more questions regarding this issue you should post them at a bootstrap forum because this has nothing to do with WebsiteBaker.
Kind regards,
Nibz
--- End quote ---
Ok, thanks Nibz for your kind help.
I will try those too and if they don't work for me, I will use this one 😊
Thanks for your help!
-zirzy
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version