I use Joomla 3.3 and a T3 BS3 based template. I'm trying to create a mainnav navbar with dropdowns that akts like bootstrap's default.
Means: I click on a dropdown-toggle and dropdown opens. I click again and dropdown closes. Exactly like http://getbootstrap.com/components/#navbar-default
I'm pretty close, but the "click to close" does not work yet.
What I did is:
- disable megamenu
- set dropdown toggle to: click
- create a main menu entry, type: External URL, href: #
- add sub entries to it
This creates following code:
<div class="t3-navbar navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="item-101 current active">
<a href="/joomla/" >Startseite</a>
</li>
<li class="item-171 deeper dropdown parent open">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Über uns<b class="caret"></b></a>
<ul class="dropdown-menu" role="menu">
<li class="item-102">
<a href="/someuri" >Title</a>
</li>
...
What am I missing to make the dropdown-toggle actually close the dropdown?
PS: now here's a copy of the live site on my dev box: http://dev.kuther.net/joomla/ -> the "Über uns" dropdown is the one I'm playing with