Closed (won't fix)
Project:
Menu Manipulator
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Aug 2018 at 21:02 UTC
Updated:
1 Apr 2021 at 07:08 UTC
Jump to comment: Most recent
If I use the menu block to display a menu in combination with the filterByCurrentLanguage menu manipulator, the settings of the max depth is ignored. The basic problem is, that the "menu_manipulator_preprocess_menu" function is called after the build process of MenuBlock.
Steps to reproduce
Comments
Comment #2
cbeier commentedComment #3
cbeier commentedBasically we need two things to get this to work:
Related: #2854013: Allow SystemMenuBlock tree manipulators to be altered
Comment #4
matthieuscarset commentedHi @cbeier.
Thanks a lot for this detailed issue.
I agree that filtering of menus would be much better for compatibility, scalability and performance if done on the Block itself.
I will look into that shortly and push a fix soon - more likely not before second week of september.
Comment #5
zy commentedHi,
I can confirm that the module does not respect settings on the core menu block eighter.
The main menu gets dropdowns (not intended), the second main menu block which should begin with level 2 becomes the exact copy of the "original" main menu, showing level 1 menu items with dropdowns.
Version: 8.x-2.0
Comment #6
j-leeWe have this issue too. Does anyone have a workaround for this?
Comment #7
matthieuscarset commentedAs tried in this other issue, it does not seem possible for Menu Block to be compatible with any other module because it basically re-render the menu with its own configuration at the block level.
Reminder: a menu can be called and rendered programatically anywhere in Drupal.
Workaround: there is an issue with a patch for the Menu Block module.
Comment #8
matthieuscarset commented