I'm working to get the Bootstrap menu working with dropdowns as it should in Joomla 3.1. I'm nearly there, but not quite: for the js script I use (How to make twitter bootstrap menu dropdown on hover rather than click)
<script type="text/javascript">
(function($){
$(document).ready(function(){
$('.dropdown-toggle').dropdown();
// dropdown
$('.parent').addClass('dropdown');
$('.parent > a').addClass('dropdown-toggle');
$('.parent > a').attr('data-toggle', 'dropdown');
$('.parent > a').attr('data-target', '#');
$('.parent > a').append('<b class="caret"></b>');
$('.parent > ul').addClass('dropdown-menu');
$('.nav-child .parent').removeClass('dropdown');
$('.nav-child .parent .caret').css('display', 'none');
$('.nav-child .parent').addClass('dropdown-submenu');
});
})(jQuery);
</script>
The css I us is (http://forum.joomla.org/viewtopic.php?f=706&t=770153)
.dropdown-menu .sub-menu {
left: 100%;
position: absolute;
top: 0;
visibility: hidden;
margin-top: -1px;
}
.dropdown-menu li:hover .sub-menu {
visibility: visible;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {
margin-top: 0;
}
.navbar .sub-menu:before {
border-bottom: 7px solid transparent;
border-left: none;
border-right: 7px solid rgba(0, 0, 0, 0.2);
border-top: 7px solid transparent;
left: -7px;
top: 10px;
}
.navbar .sub-menu:after {
border-top: 6px solid transparent;
border-left: none;
border-right: 6px solid #fff;
border-bottom: 6px solid transparent;
left: 10px;
top: 11px;
left: -6px;
}
This works excellent, with one thing to be corrected: the link in the menubar only works to show the menu under it. What I need is to get the toplink working as well. How can I do that?