Tag Archives: getOption

Final Argument to getOption()

In an earlier article, I wrote about some of the finer points of the $modx->getOption() method. It occurred to me that I could do a better job of explaining how …

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

MODX getOption() with Snippet Properties

In the previous article, we looked at the various ways that $modx->getOption() can be used. In this one, we’ll look specifically at how it handles snippet properties placed in a …

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

Understanding the MODX getOption() Method

The $modx->getOption() method is the workhorse of MODX snippet code. There are over 1,300 instances of it in my core/components/ directory. It’s used in almost any non-trivial snippet and many …

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