Tag Archives: resource

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

Get a Link to the First Child of a Resource

A MODX user asked for a snippet to create a link to the first child of the current resource, using the child’s pagetitle as the link text. This snippet will …

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