MODX EXTRA
ResSaveSort
Sort MODX containers after saving resources
Creator: Thomas Jakobi (jako)
1.0.0-pl2 (22 KB) Other VersionsAbout ResSaveSort
With this MODX Revolution plugin automatic sorting of MODX containers could be triggered.
The plugin uses the system setting ressavesort.sorts, that contains a JSON encoded array of sort configurations
Example: [{"sortby":"pagetitle","sortdir":"asc","sortcontainer":""}]
Each sort configuration could use the following settings:
- sortby: Resource fields to sort the MODX container by (template variables have to be prefixed by `tv.`), defaults to pagetitle
- sortdir: Direction to sort the MODX container by (`asc` or `desc`), defaults to asc
- sortcontainer: ID of the MODX container that has to be sorted, defaults to the parent of the current document
Hotfixes and Bugreport on GitHub
Information
New in ResSaveSort 1.0.0-pl2
- fix for sort by template variable