Blog Home


What's the Current Year I

Getting the current year in code

Empty a TV in Resources under Certain Parent Folders

Changing the value of all TVs for resources under certain parent folders.

Getting the Path of a Media Source II

Code to get Relative Paths and URLs from a MODX Media Source

Getting the Path of a Media Source I

Code to get the path of a MODX Media Source

Make Plugins Execute Based on TV Values

Enable or disable plugins based on the values of specific TVs

Make Plugins Execute Based on Resource Fields

Enable or disable plugins based on the values of specific resource fields

Make Plugins Execute Based on Resource Context

Enable or disable plugins in the Manager based on Resource Context

Make MODX Plugins Execute only in Specific Contexts

How to make your MODX plugin execute, or not execute in one or more specific contexts

Using PHP Comparison and Equality Operators in MODX

Making sure your code tests for equality properly

Creating your own MODX System Events

How to create custom System Events for use with your code