About Bob Ray

I am the author of MODX: The Official Guide and over 30 MODX add-on components. I host Bob's Guides, a source of valuable information for MODX users, and I've been very active in the MODX Forums with over 18,000 posts.

Here are my most recent posts

Author Archives: Bob Ray

Bob Ray

About Bob Ray

I am the author of MODX: The Official Guide and over 30 MODX add-on components. I host Bob's Guides, a source of valuable information for MODX users, and I've been very active in the MODX Forums with over 18,000 posts.

Template Report

A MODX Forums user asked for a way to find out which of his many templates were actually in use. Here’s a snippet that will create a report giving the …

Tags: , , | Posted under MODX, MODX | Leave a comment

Dynamic Search Criteria for getResources

There are many cases where the search criteria you want to specify for getResources, pdoResources, or another extra that uses a &where property, require calculations or are too complex to …

Tags: , , , , | Posted under MODX, MODX | Leave a comment

Using Prepared Parameterized Statements in a Class

In the previous article, we discussed how to create a parameterized, prepared statement that can be reused in a loop so that prepare() only needs to be called once. But …

Tags: , , , , | Posted under MODX, MODX | Leave a comment