-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Nav block Page List fallback displays too many Pages #44360
Comments
Noting that the Nav block currently specifies
|
The problem here is that the |
Aside, I have had users asking why this is limited to four in support requests, asking for this number to be increased. |
I've had a think about this overnight. I'm asking myself how many users will actually have this many top level pages? Answer is very few. Let's optimise for the 80% use case here and avoid limiting the number of items shown. I'll raise a PR to remove the attribute from the Page List and another to remove the functionality from the Nav block. Does that sound like a good course of action? |
OK folks I raised a PR that will remove the max limit attribute from the Page list block. Please take a look and let me know if we're happy to accept that if we merge the Navigation block fallback will render unlimited numbers of Pages. |
I left a comment on the PR, but should've probably left it here. So copying it over:
|
By default the Nav block falls back to a Page List. However on a site with a lot of pages this is overwhelming.
The Page List does have an
__unstableMaxPages
attribute but this doesn't appear to be respected by Page List even though the Nav blockindex.php
creates the block with this attribute.This is strange as it was added in #36877.
We should make the Page List respect the limit.
The text was updated successfully, but these errors were encountered: