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 14,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 14,000 posts.

Understanding the MODX getOption() Method

The $modx->getOption() method is the workhorse of MODX snippet code. There are over 1300 instances of it in my core/components/ directory. It’s used in almost any non-trivial snippet and many …

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

Displaying the Age of a Resource in MODX

You might sometime have a need to display the age of a resource. The MODX Forums, for example, show how long ago a post was entered in Years, months, weeks, …

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

Set Resource Fields and TV Values in a Plugin

In previous articles, we looked at how plugins work and saw how to perform actions when a user is saved in the Manager. In this one, we’ll see some plugin …

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