Skip to content

Repository files navigation

Menu parent browser

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.

Installation

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_browser

Nothing to configure. Node forms and menu link forms get the browser; every other form keeps the core select.

Known limitations

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.

About

Replaces the Drupal menu parent select with a searchable tree browser in a dialog. The menu tree is only walked when the browser opens, so large menus no longer weigh on every form build.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages