django-simple-menu
django-simple-menu copied to clipboard
Simple, yet powerful, code-based menus for Django applications
Took me a bit, but I can create menus alright. Cannot for the life of me figure out how to dynamically allocate URLs to each of the menus/submenus. I have...
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.17.0) - [github.com/adamchainz/django-upgrade: 1.15.0 → 1.20.0](https://github.com/adamchainz/django-upgrade/compare/1.15.0...1.20.0) - [github.com/tox-dev/pyproject-fmt: 1.5.3 → 2.2.1](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...2.2.1)
This PR adds the option for child menu items to not be removed from the list when `item.visible == False`. ### Usecase I am using django-simple-menu both for menu items...
Hi, I'ld like to bind a sub-menu part to the authenticated user (`children`). I use a function to build this sub menu, and use the `check` trick to show /...
Currently, using `submenu` is quite confusing. It works fine for two menu levels, but there are problems using it with more levels (see also #47). I wonder, if changing the...
[Despite I shouldn't write this ;-)](https://github.com/jazzband/django-simple-menu/issues/78#issuecomment-1120363541), I think it may be of help in django-simple-menu. I've tried many menu systems, and all are flawed with issues that render them unusable...
As stated in #78, MenuItem's `__init__()` adds all additionally added kwargs as instance variables. This is great for new args lico `icon` etc., as long as they are "static", meaning...
`menu.py` importing has a catch all that hides all errors making you think the plugin is not working when your code is at fault https://github.com/borgstrom/django-simple-menu/blob/master/menu/menu.py#L75 My snippet: ``` try: __import__(menu_module,...
the docs say that `{% generate_menu %}` needs to be called **within a block**. I think this is not correct, as it seems to need to be called within **the...
I've select submenu of an item. But it selects top most parents and selects anothers what I've selected. Just like below.  How to fix the issue