- Issue created by @rkoller
We were discussing ✨ Warn user when entity delete will cause menu item re-parenting Needs review in today's usability meeting 📌 Drupal Usability Meeting 2024-02-16 Active . The latter issue will have a link to a recording of the meeting. For the record the attendees of the meeting were @AaronMcHale, @benjifisher, @rkoller, @simohell, and @worldlinemine
While testing the former issue on a site with the Umami install profile we've noticed, while following along the steps to reproduce on the main navigation menu (/admin/structure/menu/manage/main
), that one of the options for the Article
menu is visually broken and dysfunctional:
Turns out in Umami the Article menu item is build by a dedicated View. The broken styling and behavior is reproducible with any new View you create. The functionality of having operational options available for a menu item was introduced with 📌 Entity operations for menu links are hardcoded in edit menu form Fixed . I've spun up a fresh install of Drupal 10.1.0 with the standard profile and went through the steps to reproduce listed next and the problem is available there as well.
1. Add a new view (/admin/structure/views/add
2. Add a name
3. Select to show Content
of type Article
4. Check Create a page
and check Create a menu link
adding it to <Main navigation>
5. Save
6. Go to /admin/structure/menu/manage/main
7. Check the options of the newly created and added menu item
Since the option to delete a menu item that is created by a View is unavailable as an action and therefore disabled, it would be probably the best choice to apply progressive disclosure and simply hide the delete option.
I'll open another follow up issue and link it afterwards to this issue. We've discussed also to label what type of menu item you have in front of you. So in case of a menu item that is created by a view you as the user would see that this is a Views based menu item, and that this is the reason why I am unable to for example not to delete that menu item. At the moment all menu items are uniform, their category is only implicitly communicated by the number and type of operation options.