Menu Parent Selector
This module provides a field widget that allows content editors to select a menu and a specific parent item within that menu. When editing content, this field lets editors choose a menu and a parent link, and the system will then display only the children of that selected parent for inclusion in the menu structure.
Provides a field that lets editors select a menu and a parent link, then displays its children.
How to install and use:
- Enable the module.
- Go to a content type and add a field of type "Menu Parent Item":
- You can set a default value (optional):
- Go to /admin/structure/types/manage/XXX/form-display and enable the field in the form:
- Go to /admin/structure/types/manage/XXX/display and enable the field:
- Your menu should have a structure like this, a parent item and children items:
- Create or edit a node. Then, select the menu and the parent item:
- Save the changes. The node should show only the links under parent item: