Add Support for Layout Builder

Created on 25 December 2019, over 5 years ago
Updated 4 March 2025, about 2 months ago

This is a nice, minimal alternative to Menu Item Extras. I was testing it out as a replacement for creating mega menus, and I found a couple of small issues with layout builder:

  • The title + link didn't render properly
  • The layout builder admin pages were 404s

Here's a branch with my attempt to fix those two issues. In my quick testing, it worked fine: https://gitlab.com/jeffam/drupal-menu-item-fields/commits/extra_field_la...

There are probably lots of ways get the title as a link in both layout builder and the standard display mode, but an extra (or pseudo) field worked well.

I'll add a patch to this issue, and if this approach looks OK, I'll make a PR on gitlab.

✨ Feature request
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jeffam

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.

  • πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

    It seems there is not enough interest

  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    Hey @rodrigoaguilera, I am trying this module out for the first time and running into this issue.

    When you enable layout builder for menu items, and then click manage layout, you get a 404.

    Here's the URL it was going to:

    /admin/structure/menu/display/primary_nav/layout?bundle=menu_link_content

    It's happening with the default display and this custom one.

Production build 0.71.5 2024