Query offers a Snippet-interface for xPDO's getCollection method. This allows you to query *any* MODX database collection and format the output, including pagination. Query can be used as a replacement for getResources: it offers more flexibility because it's not constrained to fetching only resources.
It can also be used to easily format your own custom queries by using its &_sql parameter.
See screencast at https://www.youtube.com/watch?v=RaUHvJDTkYQ&feature=youtu.be
queryResources hones in on modResource collections to allow for flexible querying on any column or TVs.
You can install Query via the standard MODx package manager.
You can also install Query via Repoman (https://github.com/craftsmancoding/repoman).
- First seen
- Supported databases
- Minimum MODX Requirement
|MODX.com||1.3.1-pl||2015-05-18 (4 years ago)|