Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make default topbar menus configurable by Django Admin #1954

Open
giohappy opened this issue Feb 5, 2025 · 0 comments
Open

Make default topbar menus configurable by Django Admin #1954

giohappy opened this issue Feb 5, 2025 · 0 comments
Assignees
Milestone

Comments

@giohappy
Copy link

giohappy commented Feb 5, 2025

The default menus in the catalog's topbar (All Resources, Datasets, Maps, Documents, Geostories, and Dashboards) are set in code by the get_base_left_topbar_menu and get_base_right_topbar_menu template tags.
Any custom menu is placed beside these fixed menus.

Often we receive requests to modify the default menus, for example hiding items, changing the labels, or placing custom items in between them.
This requires overriding the default template tags and the template snippets that render them.

We want to manage the default templates as Menu models, that can be customized by the Django admin.
Two additional flags will be added to the Menu and the MenuItem model to specify if a menu should be restricted to admin users and if it must be hidden from mobile agents.

The default menu items will be created with JSON fixtures which are loaded at installation time, along with the other predefined fixtures.
A project can provide a custom fixture that overrides the default one.

@giohappy giohappy changed the title Make default topbar menus configurable with Django Admin Make default topbar menus configurable by Django Admin Feb 5, 2025
@giohappy giohappy self-assigned this Feb 5, 2025
@giohappy giohappy added this to the 5.0.0 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant