Skip to content

Set max amount of "submenu" items #7

@robertvanlienden

Description

@robertvanlienden

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions