Hi,
Drupal's core menu system allows to configure which items should be shown as expanded ("If selected and this menu link has children, the menu will always appear expanded."). This setting is often used in primary navigations to control if child elements are visible or not, e.g. if all secondary nav items are shown in a hover effect. Menu position does not respect this setting.
Example:
1) I have a content type news
2) I create a news landing page which displays a list of all news through views under /news and with a primary navigation label of News
3) I create a menu position to have my content type news listed under News
4) I set the menu link for News to NOT show as expanded
5) I create a new news piece, publish it and navigate to the item. My News menu item will now show the title of the new item as child under News instead of staying collapsed.
Regards, J.
Comments
Comment #2
BarisW commentedWhat's the setting at /admin/structure/menu-position/settings?
I recommend the second option
Comment #3
jelo commentedThe second option does work. Thanks for the tip.
Shouldn't the first option (which was selected in my original case) still respect the expanded setting of Drupal core though?
Comment #4
BarisW commentedI agree. I'm happy to review patches and commit them. If someone has time to write one, that would be great.