farridav / django-jazzmin

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

support custom drop down in top menu #312

Open zahersarieddine opened 3 years ago

zahersarieddine commented 3 years ago

I needed support for dropdown menu other than the app so I added this code to utils.py but I wish to have this as part of the module

    # custom_dropdown

       elif "custom_dropdown" in link and allow_appmenus:
        menu.append(
            {
                "name": link.get("custom_dropdown", "unspecified"),
                "url": "#",
                "children": link.get("children",),
            }
        )
farridav commented 3 years ago

Sure, feel free to put your changes up in a PR, it'll need a couple more bits to it before getting it in, namely:-

I can try to find the time to help out with this once it's up, though my time is stretched at the moment, so won't be immediate