monollonom Posted September 13, 2024 Posted September 13, 2024 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
Angelino Posted November 19, 2024 Posted November 19, 2024 @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.
monollonom Posted November 19, 2024 Author Posted November 19, 2024 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.
Angelino Posted November 21, 2024 Posted November 21, 2024 @monollonom Yes pages sort on `name` if i use `name, status`. Using `title, status` doenst work. But when i use `status, title` this works.
monollonom Posted November 21, 2024 Author Posted November 21, 2024 Could you share an example (a screenshot?) and what you are expecting so I can better understand your issue?
monollonom Posted September 29 Author Posted September 29 Small update following a small issue I had: when saving a template the module now makes sure "sortfield_reverse" is unset, in case the user was previously sorting using a reversed sort direction 1
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