
pdoTools
pdoTools is a set of handy snippets for everyday use plus a small library that makes them very fast.
Thanks to the shared library, all pdoTools snippets share the same minimal feature set:
- All database queries use PDO. xPDO objects are not created unless they are actually needed.
- Simple placeholders are preprocessed in chunks. The MODX parser only handles complex calls.
- Proper sorting, preparation, processing and output of TV parameters.
- Chunk code can be specified right in the snippet call, or loaded as usual or from static files.
- "Fast placeholders" in chunks that replace filters like "isempty" and wrap values in tags only when non-empty.
- Detailed timestamped snippet log for debugging.
All queries are built on xPDO; data is fetched via PDO for resource and speed efficiency.
The package includes:
- pdoResources — Much faster replacement for getResources, parameter-compatible.
- pdoMenu — Replacement for Wayfinder, builds menus.
- pdoUsers — Select and output site users, with filtering by roles and groups.
- pdoCrumbs — Breadcrumbs, replacement for BreadCrumb.
- pdoSitemap — Fast sitemap generation, replacement for GoogleSiteMap.
- pdoNeighbors — Output links to neighboring documents.
- pdoField — Output any document field, replacement for getResourceField and UltimateParent.
- pdoPage — Paginated output, replacement for getPage.
Main features
- Arbitrary queries from any tables with any conditions and joins.
- Time tracking per operation, detailed log to find bottlenecks.
- Full compatibility with getPage for paginated output.
- Fastest chunk processing — only going without chunks is faster.
- Built-in Fenom template engine, version 2.0
