monollonom Posted September 13 Share Posted September 13 PageListCustomSort Github: https://github.com/eprcstudio/PageListCustomSort Modules directory: https://processwire.com/modules/page-list-custom-sort/ This module enables the use of a custom sort setting for children, using multiple properties. About This module is similar to ProcessPageListMultipleSorting by David Karich but is closer to what could (should?) be in the core as it adds the custom sort setting in both the template’s “Family” tab and in the page’s “Children” tab (when applicable). Usage Once a custom sort is set, it is applied in the page list but also when calling $page->children() or $page->siblings(). You can also apply the custom sort when calling $page->find("sort=_custom") or $pages->find("parent_id|has_parent=$id,sort=_custom"). Unfortunately this won’t work the same way sort=sort does if you only specify the template in your selector. 14 Link to comment Share on other sites More sharing options...
Angelino Posted Tuesday at 01:01 PM Share Posted Tuesday at 01:01 PM @monollonom Thanks for this module! I’m not sure if this is a bug, but when I use name, status, it doesn’t sort. I need to use status, name instead, which is strange. Link to comment Share on other sites More sharing options...
monollonom Posted Tuesday at 01:47 PM Author Share Posted Tuesday at 01:47 PM Hi @Angelino, Does name, status sort correctly by name, regardless of status? Since pagenames are unique it doesn’t surprise me if status doesn’t have an influence in your sort setting. If you have pages with the same title but different status, then I would advise using title, status instead. Link to comment Share on other sites More sharing options...
Angelino Posted 16 hours ago Share Posted 16 hours ago @monollonom Yes pages sort on `name` if i use `name, status`. Using `title, status` doenst work. But when i use `status, title` this works. Link to comment Share on other sites More sharing options...
monollonom Posted 6 hours ago Author Share Posted 6 hours ago Could you share an example (a screenshot?) and what you are expecting so I can better understand your issue? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now