farridav / django-jazzmin

Jazzy theme for Django
https://django-jazzmin.readthedocs.io
MIT License
1.6k stars 277 forks source link

Intermediate Grouping/Categorization of Menu Items #195

Open djpretzel opened 3 years ago

djpretzel commented 3 years ago

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:

farridav commented 3 years ago

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.

djpretzel commented 3 years ago

@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.