There's no limits by default.
Thanks for the reply.
I checked my "my_plugin" to see what code I changed for the "Pages" plugin. I did the following:
1. Hide the comment block in the plugin's sidebar.php.
2. Hide the tag block in the plugin's sidebar.php.
3. Hide the owner block in the cores' sidebar.php.
4. Sort the list for the pages:menu_nav alphabetically with the code you provided me with:
In "my_plugin"'s "elgg-plugin.php" there is:
'events' => [ 'register' => [ 'menu:pages_nav' => [ 'Elgg\Pages\Menus\PagesNav::register' => ['unregister' => true], '\MyPlugin\Pages\Menus\PagesNav::register' => ['priority' => 800], ], ], ],
And in the new "PagesNav.php" this function is added to the "$next_level_guids = [$top->guid];" part:
'batch' => true, 'sort_by' => [ 'property_type' => 'metadata', 'property' => 'title', 'direction' => 'ASC', ],
For testing purposes, I just deactivated this, and as a result I got the standard sorting, but it was also limited to 10.
I don't know where that limit of 10 comes from. How could I investigate this?
For reference, my sidebar looks like this (there are more wikis after the letter "I"):
Sounds like a bug.
Just only one guess, it comes from Site settings - "Default number of items per page".
If you have it set to 10, then that's it.
But there're no limits in 'Pages' plugin, so it's a bug.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.