Add support for menu_ui node form widget

Created on 13 June 2017, almost 8 years ago
Updated 1 December 2023, over 1 year ago

The current codebase does not provide support for managing menu links in OG menus from within the node form.
When adding or editing a node, a menu link can only be added / edited in the core menus that are made available for that content type.

In our use case, we also want editors to add menu links to the OG menus they have access to from within this UI.
Since the OG menus are not listed on the content type "available menus" third-party settings form, and given we don't want to manually select the dynamically created OG menus for each content type anyway, some custom code will be needed to achieve this.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium svendecabooter Gent

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ͺBelgium fernly

    Rerolled patch for Drupal 10

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    The logic here interferes with core's standard node form logic.

  • Status changed to Needs review about 1 year ago
  • Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    Waiting for branch to pass
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    I'm not sure why og_menu_form_node_form_alter() includes logic to force $form['menu']['enabled']['#default_value'] to be TRUE on new nodes, so this changes it subtly.

  • Status changed to Postponed: needs info about 2 months ago
  • πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

    I see this was merged in #13, then I see other patches after. I'm confused. Please create a new issues if there's more work that needs to be done.

  • πŸ‡§πŸ‡ͺBelgium fernly

    The commit was on a feature branch which doesn't exist anymore. This issue is still open and nothing is merged so far.

    Rerolled patch against 2.0.0-alpha4, based on #21.

Production build 0.71.5 2024