Menu Depth Limit
Categories
Component ID
1668550
Component name
Menu Depth Limit
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
3357
Component created
Component changed
Component body
By default in Drupal, the maximum depth of a menu links tree is fixed to 9.
Menu Depth Limit allows to assign a lower maximum depth to a menu.
Installation
Copy the menu_depth_limit folder to your sites/all/modules directory.
Go to admin/build/modules and enable the module.
Usage
Go to admin/structure/menu and add/edit a menu.
The new Depth Limit option there allows you to set a value lower than the default 9 for the edited menu.
By design behaviours
- To avoid any conflict with other contributed modules, Menu Depth Limit acts only at UI level: it will never prevent modules from programmatically creating menu links beyond the configured depth limit.
- Furthermore, if you assign to an existing menu a depth limit that is lower than the actual depth of the menu, Menu Depth Limit will temporarily ignore your setting, considering the actual depth of the menu as the active depth limit.
Once you have rearranged your menu links so that actual menu depth respects your setting, it will become the active depth limit.
Related modules
Contact
This module is sponsored by Absyx.
