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

Child pages are not populated for sub menu and has_children_in_menu is False #426

Open
naitsok opened this issue Aug 6, 2022 · 2 comments

Comments

@naitsok
Copy link

naitsok commented Aug 6, 2022

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?

@naitsok
Copy link
Author

naitsok commented Aug 6, 2022

Also, when I list child pages in Wagtail admin pages list view, in the context menu "Sort menu order" button is avalable and works.

@Squarehost
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants