- Issue created by @rkoller
- 🇺🇸United States benjifisher Boston area
Maybe this should be a separate issue, but today I noticed that I cannot set a menu item to Expanded if it is created by Views.
While 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 . That 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 aforementioned on a site with the Umami install profile we've noticed while following the reproducible steps on the main navigation menu (/admin/structure/menu/manage/main
) that one of the options for the Article
menu is visually broken and disfunctional:
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 issue 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 disabled it would be probably the best choice to apply progressive disclosure and simply hide the delete option in this case.
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 used would see ah that is a Views based menu item, that 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.
Active
11.0 🔥
Makes Drupal easier to use. Preferred over UX, D7UX, etc.
Maybe this should be a separate issue, but today I noticed that I cannot set a menu item to Expanded if it is created by Views.