Blog Home


Getting Multiple Object Fields -- FAST

A very fast way to retrieve selected object fields without getting the whole object

Getting Multiple Parent Fields

A quick way to display multiple fields from the current resource's parent

Using getValue() with Date Fields

Retrieving and handling resource date fields like editedon and createdon in code the fast way with getValue()

Using getValue() wth Boolean (Yes-No) Fields

Getting and interpreting MODX boolean (Yes/No) fields in code

Get a Field Value -- Fast

A very fast and efficient method for getting field values in MODX, from Jason Coward.

Set Resource Fields and TV Values in a Plugin

Using a plugin attached to OnDocFormSave to modify resource fields and TV values

Getting Any Parent Field

A snippet to get any field from the parent of the current resource.

Understanding MODX Extended User Fields and JSON

Handling the extended fields of the MODX user profile in code

Displaying MODX Date Fields

Tips and techniques for displaying date fields in MODX