Blog Home


Updating Multiple MODX Settings in Code

Using a snippet to automate the process of updating multiple settings

Updating MODX Settings in Code

How to update various kinds of MODX settings in PHP

Creating User Settings in Code

Using PHP code to create MODX User Settings

Creating User Group Settings in Code

Using PHP to create MODX User Group settings

Creating Context Settings in Code

Using PHP to create MODX Context Settings

Creating System Settings in Code

Using PHP code to create MODX System Settings

Using MODX Settings in Code

Using settings in the PHP code of a snippet or plugin

Creating Symlinks in Code

Using PHP code to create a new Symlink

Calling getResources in Code

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

A PHP Code Clarity Tip

A more readable alternative to some complex if statements in PHP.