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

Set max amount of "submenu" items #7

Open
robertvanlienden opened this issue Jan 21, 2022 · 0 comments
Open

Set max amount of "submenu" items #7

robertvanlienden opened this issue Jan 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@robertvanlienden
Copy link
Contributor

robertvanlienden commented Jan 21, 2022

Right now, it's possible to make "unlimited" sub-menus under sub-menus under sub-menus (and going on...) in the admin.
Most of the times, the front-end only renders 1 or 2 layers deep of sub-menus.

It would be a nice enhancement to make it possible to "limit" the amount of submenu's.

Suggestion;
My idea is; Make it possible to add a (optional) MAX_NESTING variable for each "protected" menu.
When rendering the "MenuItem" GridField, we check how "deep" we are nested and if we have reached the MAX_NESTING for the "protected" menu you are working on.

Other ideas to make this possible are welcome 😄 .

@robertvanlienden robertvanlienden added the enhancement New feature or request label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant