Problem/Motivation

Navigation ships with a 'Content' menu that provides links to create some entity types. By default it includes all node types, as well as document and image media types (these are specifically hard coded for some reason) and user.

After in-the-wild feedback and much discussion, we want to revise this to only include node types by default. As it's a regular menu, other items can be added as needed, but there's not really a great reason to special-case document and image, and the creation of users is not really that common (not to mention if a site has a 'Person' or 'Profile' content type this would be very confusing because they are all listed together in alphabetical order.

Proposed resolution

We would remove these special links and only include node types by default.

Remaining tasks

User interface changes

These screenshots show the effect of the change on Drupal core:

  • Standard profile
  • Media module enabled
  • Three content types: Blog post, Project, Utility page

Before

Screenshot showing the Content menu expanded, with 'Blog post', 'Project', 'Utility page', 'Document', 'Image', and 'User' sub-items

After

Screenshot showing the Content menu expanded, with just 'Blog post', 'Project', and 'Utility page' sub-items

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

TBC -- might be worth a mention but since Navigation wasn't stable/default yet, it likely does not affect that many users.

Issue fork drupal-3578196

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pameeela created an issue. See original summary.

mstrelan’s picture

+1 from me. Is it really called the Content menu? Can we call it the Create menu?

pameeela’s picture

StatusFileSize
new61.43 KB

@mstrelan yes, much to my ongoing confusion, it is called Content!

ckrina’s picture

+1 to remove media and user links from this menu. It's proven be more confusing than helpful.

emma horrell’s picture

Having tested this with users when they select Create, they are expecting to create things like pages, blog posts.
Users should be removed as people may mistake this to mean profiles
Media should be removed as people expect to add media through the media option (beneath CMS in the left hand menu)

pameeela’s picture

Status: Active » Needs review

Took a pass at this, not 100% sure on the test updates.

smustgrave’s picture

Status: Needs review » Needs work

100% agree on removing. Looks like it still has some kernel test cleanup. May have some time to look at myself if no one gets to it.

phenaproxima made their first commit to this issue’s fork.

phenaproxima’s picture

Status: Needs work » Needs review

Fixed it for you.

smustgrave’s picture

Mind tweaking the performance test.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Ah must of posted right at the same time as your last commit. All looks good now.

godotislate’s picture

Can someone take a screenshot of the after and add to the IS?

smustgrave’s picture

Setting myself a reminder to get to at DrupalCon

smustgrave’s picture

StatusFileSize
new52.08 KB

after

There you go!

benjifisher’s picture

Issue summary: View changes
StatusFileSize
new21.89 KB
new28.83 KB

@godotislate:

For the new screenshots, I installed Drupal core with the Standard distribution, using first the main branch and then the feature branch. I installed the Media module, then I changed the names of the Article and Page content types and added a third, to make my screenshots closer to the one already in the issue summary.

@pameela:

If this issue gets committed, then I think we can close #3457729: Grouping or prioritisation for items in create menu and #3573730: Improve usability of 'Create' menu in navigation as duplicates.

pameeela’s picture

Thanks @smustgrave! I agree that we should close #3457729: Grouping or prioritisation for items in create menu but not #3573730: Improve usability of 'Create' menu in navigation as this issue is just a way to make it a little better until we can improve it much more to make it more useful. It's a longer term thing that we don't have an exact plan for, but this definitely isn't finished with this change!

  • godotislate committed 1af5bc1f on main
    task: #3578196 Remove media and user links from the Content menu
    
    By:...
godotislate’s picture

Version: main » 11.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Thanks @smustgrave and @benjifisher for the screenshots. I added a CR https://www.drupal.org/node/3581445 for users who may want to restore those links after they are removed, but it could use someone giving it a look.

Committed 1af5bc1 and pushed to main. Thanks!
This doesn't apply to 11.x because of a conflict in performance tests, so it'll need a backport.

smustgrave’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

Clean backport.

  • godotislate committed 56d0ae2f on 11.x
    task: #3578196 Remove media and user links from the Content menu
    
    By:...
godotislate’s picture

Status: Reviewed & tested by the community » Fixed

Committed 56d0ae2 and pushed to 11.x. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.