Set Main navigation as parent when creating new View menu links, not Administration

Created on 30 June 2023, 12 months ago
Updated 21 September 2023, 9 months ago

Problem/Motivation

When you create a new View and add a menu link, the parent is set to "Administration", where "Main navigation" would be a better choice, since that is more likely what the user wants, rarely "Administration".

Steps to reproduce

  1. Create a new View
  2. Select "Page settings" > "Create a page"
  3. Select "Create a menu link"
  4. See that the parent is "Administration" and not the more often used "Main navigation"

Proposed resolution

Set the parent to "Main navigation" by default, when you create a menu link in a View.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 41 minutes ago

Created by

πŸ‡©πŸ‡°Denmark ressa Copenhagen

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

Comments & Activities

  • Issue created by @ressa
  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    I have to say that most of the Views I build are for administrators (or are unpathed), so the current default makes sense for me.

    Probably largely depends on your setup and usage of Views what is a sensible default, so not convinced changing this will be a big improvement for all users of core. But happy to hear more opinions!

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    Heh, good point @Lendude, the norm is in the eye of the beholder. Ideally, we should gather data from actual installations, and weigh the "Admin" / "Main Navigation" parent menu ratio, but that data is probably hard to gather. But yes, let's see what others say.

    Though, the Drupal core Views issue followers are most likely not ordinary site builders, but experts such as yourself, working on bigger, complex sites.

    Site builders, working on smaller sites, create mostly lists of content, and not so much administrative views. That is at least my assumption. Since ordinary Drupal site builders don't normally frequent the Drupal core Views issue queue, we most likely won't hear from them.

    I have created https://www.drupal.org/forum/general/general-discussion/2023-07-03/opini... β†’ to hopefully widen the audience.

  • πŸ‡¨πŸ‡¦Canada liquidcms

    And while this is being considered.. how about a better way to pick the Parent than scrolling through the 1000 items listed in the drop down?

Production build 0.69.0 2024