verbb / cp-nav

Control Panel Nav is a Craft CMS plugin to help manage your Control Panel navigation.
MIT License
130 stars 11 forks source link

Feature request: nested menu items #64

Closed KatieMFritz closed 2 years ago

KatieMFritz commented 4 years ago

Context: The CP nav menu is a handy place to put lots of shortcuts, but it can also get visually overwhelming when everything is on the same level.

Request: Allowing nesting/progressive reveal of menu items to make it easier for editors/authors/admins to parse the available links.

An example of the desired behavior:

Screen Shot 2020-01-30 at 11 27 09 AM

Other thoughts:

Use case

Part of a sample nav menu:

engram-design commented 4 years ago

Thanks! I was going to roll this in to the latest update, but it proved a much bigger task. Adding to the todo list

JayBox325 commented 3 years ago

@engram-design How has this task progressed this year? This is something I'm keen to add, but I've managed to make do with headings for now.

engram-design commented 2 years ago

Very pleased to announce this is now possible in 4.0.0-beta.2 for Craft 4. You can manage all subnav items from Craft and plugins, by moving them in or out of their default position. For example, if you wanted to move Orders out of Commerce > Orders. You can of course add your manual items inside or as parents of items.

Secondly, there'a also now the option per navigation item to control the subnav behaviour - including core Craft subnav items like "GraphQL", and plugins like Commerce.

You can also manage this globally in the plugin settings if you want everything to have the sam behaviour.