Often it's required to wrap the value of a MODX tag with some markup, but only if the value is not empty. This single line of PHP will do the trick.
How to set an "active" classname on a menu item, if the current page is in the "section" of the menu item.
Set an output filter on a MODX placeholder that calculates reading time.
Index of getResources articles on this site, because there's so many of them.
How to create a MODX output modifier to filter a string value into valid URL syntax. Useful for HTML attribute values as well.
How to make a dynamic list option field for child Resources in the MODX Manager.
Building on the GoogleSiteMap code, written by @garryn here at MODX, this Snippet returns a collection of HTML list items, each containing a link to a Resource that meets the criteria passed to the Snippet.
A MODX Snippet that fetches Resources and displays them grouped by columns.
Quick tutorial on how to use MODX's FormIt Extra to handle AJAX form submissions with JSON responses for the browser.
This MODX Snippet returns Content Blocks layout settings for use anywhere in your template.