Add the option to add custom menus to a content type on menu creating/editing

Created on 4 August 2011, over 13 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

When creating a custom menu there isn't an option to link the menu to a content type.
I had the idea to make a custom menu where I could add some basic pages.

The steps I had in mind:
1) Create the menu
2) Create a basic page
3) When creating the page add it to my custom menu

I got stuck on 3 because I couldn't find the menu and I didn't had a clue where to start looking. Untill someone told me I had to edit the content type to allow the new custom menu. This is confusing and there are no hints in the UI you have to do this.

Proposed resolution

Add checkboxes containing the available content types when creating/editing the menu

Remaining tasks

- Current re-roll includes edits to admin page callbacks that no longer exist in Drupal 8.x, so the patch has no effect
- Need to integrate UI changes into the code that generates the menu creation/edit pages in Drupal 8.x
- If creating a new Menu module, needs to have an .info.yml file included
- Maybe change the description of the form element

User interface changes

A new checkboxes form element linking a menu to a content type, or multiple content types.

API changes

No API changes

Feature request
Status

Needs work

Version

10.1

Component
Node system 

Last updated 4 days ago

No maintainer
Created by

🇧🇪Belgium aspilicious

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024