Jump to content

PageListCustomSort


monollonom
 Share

Recommended Posts

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.

1378048268_Screenshot2024-09-13at15_40_17.thumb.png.1a5339246ac95e22fd70a7d4743538f8.png

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.

  • Like 14
Link to comment
Share on other sites

  • monollonom changed the title to PageListCustomSort
  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...