django-jazzmin
django-jazzmin copied to clipboard
Intermediate Grouping/Categorization of Menu Items
Basically, I've got a "core" app with 40+ models, and I'd prefer not to break them up, but I'd also like to be able to create arbitrary groups/categories for them in the sidebar menu, and also have the option to insert those groupings (with dropdowns) along the top menu.
Right now I can hide specific apps (hide_apps), or models (hide_models), and I can add custom menu links to an app (custom_links), but I can't organize different models/admins within an app, which would offer a lot more flexibility.
Additional/related ideas:
- ability to key custom links on model name, instead of app name.
- support for second/third-level menu items in the sidebar & dropdown
- given potential complexity/flexibility needs, move the entire menu to a dedicated class?
- a menu item could be either 'app', 'model', 'custom', or 'group', represented in a tree structure?
I'll have a think about it, perhaps we can add an "advanced use cases" into the docs, and allow full control over the menu by overriding a class path or something..
Generally speaking, I'd highly recommend you split out your core app, though I respect there may be underlying reasons why that's not possible.
@farridav Thanks, appreciated. At the moment this is a pretty big deal for me; I get that the Django paradigm pushes towards separation into different apps, but I also feel like it's optimistic to think that that separation can & should be tightly coupled to menu/navigation, and seeing Jazzmin support a workaround would be fantastic.