Menu Link Weight

Component ID

2453539

Component name

Menu Link Weight

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

9028

Component created

Component changed

Component body

This module replaces the standard numeric weight dropdown widget for menu links in the node form with a tabledrag widget that lists all children for the selected parent.

Functionality:
Upon selection of a parent, a tabledrag widget is loaded via AJAX. This lets us reorder the weight of the menu link for the node we are editing relative to its sibling links, as well as reorder the sibling links themselves. This means we can now ignore any numerical weight values and instead see the position of a menu link relative to other links in the tabledrag widget itself.

Note: Upon node submission, the weights of all the siblings of the currently selected parent will be internally reordered from -50 to -49, to -48 etc.!

Testimonials:
limehouse: "Small but beautifully formed, this module is a really useful improvement to the UI and will help my non-technical users loads!"

Recommended modules:
This module integrates with the Hierarchical Select Menu module (D7) and Client-side Hierarchical Select (D8), which allows for selection of a parent link using an hierarchical select widget. This can be useful when managing large menu trees.

In D8, the Client-side Hierarchical Select widget can be enabled at admin/config/user-interface/menu-link-weight.

Branches:
8.x-1.x: Uses menu_ui
8.x-2.x: Requires menu_link field and for the Menu link field to be called field_menulink