MenuSource contextual edit links

Created on 17 January 2025, 4 days ago

When I place a Menu component as a block in block layout, or layout builder, there are no contextual edit links for the menu.

I think they are normally printed in the block template, and the component just handles the menu links.

This is a UX issue because it can be confusing or tedious to find out what menu is in place, and navigate to the edit page without the contextual edit links.

✨ Feature request
Status

Active

Version

2.0

Component

User interface

Created by

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

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

Comments & Activities

  • Issue created by @mortona2k
  • πŸ‡«πŸ‡·France pdureau Paris

    I think they are normally printed in the block template, and the component just handles the menu links.

    That's right. Contextual edit links for the component block works anyway? Is it enough?

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

    A component placed in block layout has contextual edit links for Configure and Remove, but not for editing the menu.

    When placed in layout builder, there are no contextual links for it on the page.

  • πŸ‡«πŸ‡·France pdureau Paris

    A component placed in block layout has contextual edit links for Configure and Remove, but not for editing the menu.

    Ok, I understand now. That could be a nice feature to add later: in a ComponentBlock, if the component has a links prop type which is set with a MenuSource value, add a "Menu" contextual edit link to the menu config page.

    What will happen if the component has many links prop type? We take the first one with a MenuSource value?

    I hope the implemnattion of this will not be too complicated for a small feature.

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

    If a component has multiple links props, I think having a contextual edit link for each menu makes sense.

Production build 0.71.5 2024