#Multi-Level / Nested Nav Menus

5 messages · Page 1 of 1 (latest)

lean hill
#

Looking to create a Menu collection containing a self-referencing MenuItem block to support nesting of menu items at several depths. I have a version of this working, but it creates a separate table for each level of depth.

Is there a way to prevent this and essentially replicate the functionality of plugin-nested-docs but in a single spot in the UI for management, such as a tree view?

Previous Title: Nest recursively without separate table for each level of depth?

tiny eagleBOT
lean hill
#

Nest recursively without separate table for each level of depth?

lean hill
#

Found a way to do this by creating two collections: Menus and MenuItems. Menus joins on MenuItems to allow for managing the items in a single place. Editing each MenuItem opens a drawer. MenuItems is hidden from the main dashboard, making them only manageable through Menus .

You could change this to only show immediate children of the Menu and then change the MenuItem drawers to only show their children. This would allow for a more hierarchical management approach, but it's a lot of nested drawers.

I'll be expanding on this functionality by creating a custom component to show these all in a single view, possibly using accordions and/or separate cards.

#

Multi-Level / Nested Nav Menus