Feature Request

When a content type allows multiple menus it would be helpful if the order (weight) could be adjusted to control the order the menus appear on the node form.

For example, lets say my Basic page allows me to put it in 3 menus,
1. Excluded from top nav
2. Main Navigation
3. Program Menu

On the node form i want it to show in this order in the menu tree.
Main Navigation
Excluded from top nav
Program Menu

CommentFileSizeAuthor
menu-tree-order.png10.73 KBjdewit
multiple-menus.png11.4 KBjdewit

Issue fork menu_tree-3578355

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jdewit created an issue. See original summary.

peter törnstrand’s picture

Version: 2.1.1 » 2.x-dev
Category: Feature request » Task

Sounds reasonable. Will implement.

peter törnstrand’s picture

Ok, so this makes it possible to sort menus with the third party setting weight.

uuid: 9ca88d2e-eaea-4caf-8796-515b5da80844
langcode: en
status: true
dependencies:
  module:
    - menu_tree
third_party_settings:
  menu_tree:
    weight: -5
id: footer
label: Footer
description: 'Site information links'
locked: true

Changing the value of weight is only possible by editing the config files directly right not. Remains to build a UI for this.

peter törnstrand’s picture

Status: Active » Needs review

Ok, so this is now ready for review.

jdewit’s picture

Status: Needs review » Reviewed & tested by the community

Tested on Drupal 11.2.10 with Menu Tree 2.1.1 and the new weight feature works as expected. Was able to set the menu weights and they appeared in the order that I specified. Thank you for your efforts with this feature request. It is much appreciated!

peter törnstrand’s picture

Status: Reviewed & tested by the community » Fixed

Merged to 2.x. Will be included in version 2.1.2.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.