4Register Tony
4Register Tony

Reputation: 41

how to create a 'root menu' with 'sub menu' in oritinal wagtail admin navigation bar?

all: i am a newbie to wagtail. recently, i programmed a wagtail engineering to manage some node mgmt toolkits. But on the navigation bar, i can ONLY make the single menu, by 'register_documents_menu_item' in wagtail_hooks, as picture shows. How can i make some menus with sub-menu support? and how does the dependence relationship work? i've worked several days trying to use has_child method and insert js in html templates. but seems it all not works.

my wagtail environment is on: wagtail 1.13.1 django 1.8

thanks for your help in advance.enter image description here

Upvotes: 1

Views: 1141

Answers (1)

FlipperPA
FlipperPA

Reputation: 14311

For multi-level menus, the Wagtail Menus package works very well:

https://wagtailmenus.readthedocs.io/en/stable/

Good luck!

Upvotes: 1

Related Questions