I have a menu that needs to be 3 levels deep. The last level never shows up. All menu items are set to 'Show as expanded'. But if go look at the html of the li items that make up the menu, I see <li class="collapsed" >menuitemname </li>
This problem occurs in bartik as well as b2nature (the one that the site should go live with)
Keep in mind that I made really really sure that under the menu configuration, I set each and every menu item as 'Show as expanded'.
Update The problem even seems a little tougher than I would think. I made a script that changed all of the class values that said 'collapsed' into 'expanded'. After checking the HTML I can see that the script works, but even with all the classes set to 'expanded' still no level 3 to be seen.
Here's the script for what it's worth
window.onload = function(){
var mainMenu = document.getElementById('block-menu-block-1');
var menuItems = mainMenu.getElementsByTagName("li");
for (var i=0; i < menuItems.length; i++ ){
var attributes = menuItems[i].getAttribute('class');
var arrayAttributes = attributes.split(' ');
for (var j=0; j < arrayAttributes.length; j++ ){
if (arrayAttributes[j] == 'collapsed'){
arrayAttributes[j] = 'expanded';
}
}
var newAttributes = arrayAttributes.join(' ');
menuItems[i].removeAttribute('class');
menuItems[i].setAttribute('class', newAttributes);
}
}
Update: I can confirm that this problem must be due to a bug.
I reconstructed the same menu on another site(locally this time). When I would put the block of that menu in any region, the expanded menu items just show up because I checked the 'Show as expanded'-checkbox in the configuration after clicking '+ Add link'. It didn't matter if the expanded menu items had actual nodes as path or as path. All worked just fine. Then I also reconstructed the same menu on my problem-site just starting from scratch but the problem persisted.
Update The 3rd level also isn't there in HTML. I also installed and configured the Menu Blocks module to see if this would be of any help but it isn't.