localgovdrupal / localgov

Installation profile for the LocalGov Drupal distribution.
GNU General Public License v2.0
83 stars 18 forks source link

Adopt and tweak Drupal 11 "create menu" #620

Open willguv opened 1 year ago

willguv commented 1 year ago

The double nesting on the Content menu makes it slow to pick the item you want

Image

Content editors do this a lot, so we should optimise this

Is it possible to remove "Add content >" from the content menu, bring everything up a level and reorganise it in a way that makes sense?

UPDATE @andybroomfield flagged an ongoing conversation on Drupal.org about this, and proposals for a "Create" menu

willguv commented 1 year ago

This is a bit more like it - ordering needs a bit more thought

Image

davidupjohn commented 1 year ago

Without the word 'Add content' how do I know what selecting one of those drop downs will go to ? Will it be a list of all step-by-step pages ? or will it take me to adding a new step-by-step page ? If you are using a screen reader where is the context of this menu ?

willguv commented 1 year ago

Hmmm... good point, thanks @davidupjohn. Some would be creating new content, others link to the lists of things eg alert banners

Can you think of any ways of reducing nesting, or am I trying to force this to do something it can't do? Cheers

andybroomfield commented 1 year ago

Long thread on Drupal.org about creating a new or Create content menu. There is also New “content creation” menu proposal

This looks like the way to go, we could maybe add one with menu link group in the short term?

willguv commented 1 year ago

This is really useful - thanks Andy!

I've pulled a few things over from the Structure menu (eg add facet type) to address the same need

Can menu link groups be used to create new top level items in the nav?

willguv commented 1 year ago

Content group: like this idea

David: how about shortcut buttons for the items you create all the time?

davidupjohn commented 1 year ago

Yes we have shortcuts on our public site (not LGD) for event authors who log in rarely and just do one thing. I never use it personally and think there are other parts to focus effort into. But I use it every day. Its you use it sparingly a shortcut might be good.

image

NDITGC commented 1 year ago

Hi there,

I actually kept the original 'Content' "dashboard" (I will call it that!) for myself and 'Administrator' roles on my site.

Then with custom roles and permission customisation, I created other options in the top toolbar which I tested with dummy user accounts.

Here are some screenshots:

Going in the 'views' and 'settings' of the view for allows you to customise the settings. It took a while to get my head around but it has been well received so far, and 'subtracting' every option during our new site launching is probably helpful to our teams.

I also added GOV.UK links and a 'mailto' link which creates an email to myself if they ever wanted to give feedback or request help, which has filled body/subject text for their issue.

LGD Custom Menus with limited options for editors - Screenshot 2023-09-12 143351 2

LGD Custom Menus with limited options for editors - Screenshot 2023-09-12 143351

andybroomfield commented 1 year ago

See also Tasty backend for an alternative implementation.

willguv commented 1 year ago

@willguv to propose a new menu for discussion. Any flexibility on icons/ styling

andybroomfield commented 1 year ago

Using menu link group.

Screenshot 2023-09-13 at 2 31 53 pm
andybroomfield commented 1 year ago

Config to install this in an existing site.

langcode: en
status: true
dependencies: {  }
id: localgov_menu_link_group_new
group_label: New
weight: -99
parent_menu: admin
parent_menu_link: system.admin
child_menu_links:
  - 'localgov_menu_link_group:admin_toolbar_tools.extra_links:node.add:services'
  - 'localgov_menu_link_group:admin_toolbar_tools.extra_links:node.add:guide'
  - 'localgov_menu_link_group:admin_toolbar_tools.extra_links:node.add:directory'
  - 'localgov_menu_link_group:admin_toolbar_tools.extra_links:node.add:news'
  - 'localgov_menu_link_group:admin_toolbar_tools.extra_links:node.add:step_by_step'
  - 'admin_toolbar_tools.extra_links:node.add.localgov_event'
  - 'admin_toolbar_tools.extra_links:node.add.localgov_subsites_overview'
  - 'admin_toolbar_tools.extra_links:node.add.localgov_subsites_page'
  - 'admin_toolbar_tools.extra_links:add_media'
willguv commented 9 months ago

@stephen-cox let's discuss and estimate the following please, then raise at the Product Group

A 'New' menu between the Drupal icon and 'Content'

Icon is a '+' if possible

Menu contents are as follows


Alert banner

Directory

Event

Guide

Location

Media

News

Page component

Services

Step by step

Subsites

User

Tidying up the 'Content' Menu

Menu contents are as follows:


Overview

Alert banners

[Blocks - if the user has suitable permissions]

Directory facets

Files

Locations

Media

Page components

Scheduling

We may need to change the order on https://demo.localgovdrupal.org/admin/content to reflect this

andybroomfield commented 9 months ago

There is also the new Drupal content menu (can be enabled in Gin settings).

Screenshot 2024-01-26 at 2 46 46 pm Screenshot 2024-01-26 at 2 47 14 pm

Not compatible with menu link group though.

stephen-cox commented 8 months ago

There is also the new Drupal content menu (can be enabled in Gin settings). Not compatible with menu link group though.

Enabling this just crashed the site with complaints from localgov_menu_link :disappointed:

stephen-cox commented 8 months ago

@willguv I have just applied the config Andy gave to the product site. Seems to work reasonably well, so if this is just moving some menu items around then it's fairly easy to do.

willguv commented 8 months ago

That's looking great, thanks @stephen-cox

Is it possible to make these changes: https://github.com/localgovdrupal/localgov/issues/620#issuecomment-1911826456

Or can make them if there's an interface? If so please show me how - thanks

stephen-cox commented 8 months ago

@willguv You can configure the menu link group here: https://product.localgovdrupal.org/admin/structure/menu/localgov_menu_link_group/localgov_menu_link_group_new

It only allows moving things around, so if there are things you want renaming or removing they will have to be handled separately.

willguv commented 5 months ago

@markconroy I saw somewhere that Drupal 11 is overhauling the menus - is this right?

If so, thinking of closing this in favour of that work

markconroy commented 5 months ago

Hi @willguv, yes, there's a plan for a new admin menu system in Drupal 11.

Here's some details on it: https://www.drupal.org/project/drupal/issues/3373303

Maybe we can postpone this issue, rather than close it, to see how far the new admin menu in D11 gets us, and then we can add our own specific improvements on top of it.

=== Thanks to Big Blue Door for sponsoring my time to work on this.

willguv commented 5 months ago

Thanks @markconroy let's postpone this

https://www.youtube.com/watch?v=mSTX7xC5WAo is linked from the issue you shared, also worth watching