Query Icon

Query

By Everett Griffiths (everettg_99)

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.

Everett Griffiths


New in Query 1.3.1

Version 1.3.1 includes the vendor/autoload.php (oops).

Version 1.3.0 features several important updates:

  • New queryResources snippet dedicated entirely to querying pages including via TVs
  • Custom Cache partition for faster performance.

More

Information

Released
March 25, 2014
Supported Versions
2.3 – Current
Downloads
2,066
License
GPLv2
Website

More from Everett Griffiths

Asset Manager

Integrated Media Library for MODX Revolution including drag-and-drop…

View
X
xls2modx

xls2modx is a command-line utility for moving content data (i.e.…

View
Lunchbox

Turn a MODX folder into a paginated container to help organize your…

View
Repoman

Repoman is a package for MODX Revolution that makes it easier for…

View