Blog Home


User-related Resource Fields II

A snippet to get the full name for any user-related resource field without modifying the snippet code.

User-related Resource Fields I

Using the user-related resource fields in code

Calling getResources in Code

Get the results of a call to getResources in PHP code (and a useful trick for the &where property).

Dynamic Search Criteria for getResources

Using a small utility snippet to create complex search criteria for the &where property of getResources or pdoResources or any other snippet that uses a &where property.

Display the Age of a Resource

A snippet to show the age of a resources using various time units

Set Resource Fields and TV Values in a Plugin

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

Why Extend modResource?

Realize amazing speed increases by extending the modResource object in MODX

Show Full Name of Editor and Date of Edit for Resources

A snippet to show the full name of the person who edited the current page and, optionally, the date of the last edit.

Clearing the Cache for Selected Resources

Use a plugin to clear the cache for selected resources in MODX Revolution

Selecting Resources to Preview on your Home Page

A client-friendly way to show selected teasers with getResources