wagtailmenus
wagtailmenus copied to clipboard
Child pages are not populated for sub menu and has_children_in_menu is False
Hello, I'm trying to use Wagtailmenus in my project and have an issue. When rendering the menu only top level menu items are available, the ones that were manually created in the Main menu settings in Wagtail admin. But the children pages of the top level page are not populated in the top level menu item, and the item.has_children_in_menu is False. Here is my setup: Django 4.0.5; Wagtail 3.0.1; Wagtailmenus 3.1.2. I use MenuPageMixin class when creating my Page objects. The "Show in menus" is true for all the pages in the page tree. All mirations seem to be applied. What can be wrong? Am I doing something incorrectly?
Also, when I list child pages in Wagtail admin pages list view, in the context menu "Sort menu order" button is avalable and works.
Hi @naitsok,
Try changing this setting: https://wagtailmenus.readthedocs.io/en/stable/settings_reference.html#wagtailmenus-section-root-depth
In your settings, try: WAGTAILMENUS_SECTION_ROOT_DEPTH = 2