Replaces the menu parent <select> on menu link forms with a searchable tree
browser in a dialog.
Core builds that select by walking every menu tree on every form build, whether or not anyone opens it. This module leaves the tree alone until the browser is opened, and shows the hierarchy as a tree rather than as leading dashes.
The module is not on Packagist, so add the repository first:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/vever001/menu_parent_browser"
}
]
}composer require vever001/menu_parent_browser
drush pm:install menu_parent_browserNothing to configure. Node forms and menu link forms get the browser; every other form keeps the core select.
The dialog puts every row in the tab order, so on a large menu reaching the confirm button takes many presses. The WAI-ARIA treeview keyboard pattern is not implemented yet.
The browser needs JavaScript. Without it the field shows the current parent but cannot be changed.