In Joomla 5 a front end side menu could be displayed with all of the sub menu items open. This was very convenient for chapter and verse of a book. In Joomla 6 that is not possible and display of the item selected open is not a solution. Here are two screenshots using the Testing Sample data from Joomla 5 and Joomla 6.
Screenshot upload not working - going to GitHub to try there!
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
@ceford This behaviour in the menu was not intended. Javascript for the toggle behaviour was also delivered with the default layout in Joomla 5, but it was broken.
If you want this behaviour, simply create an override and remove the JavaScript and the toggle button added for accessibility, and you will have your menu back the way you want it.
But it makes no sense to load JS, which is broken. Sorry for fixing it. :)
After my understanding the menu open behaviour should be controlled by the menu modules start level, end level and show sub-menu attributes. It should not be necessary to add a special class nor overrides.
Does show sub-menu even have a function for the dropdown layout? I guess not.
You can test it out. Further improvements in the shape of PRs are always welcome.
Screenshot J5:
Screenshot J6: