Adding MODX Users to User Groups
As I’m sure you know, there’s almost never just one way to do something in MODX. In this article, we’ll see several different ways to add a user to a … Learn More
View ArticleClearing User Session Data
When making changes to a user’s status or capabilities, as we discussed in the previous article, sometimes you’d like the changes to take effect right away. Suppose, for example, that … Learn More
View ArticleA PHP Code Clarity Tip
This is a quick tip on making your PHP code easier to read (both for others, and for you). Complicated if statements can be fairly obscure, so we’ll look at … Learn More
View ArticleMODX Snippet Development I
This is the first in a series of articles about snippet design and improvement. In the series, I’d like to walk you through the process of creation and enhancement of … Learn More
View ArticleMODX Snippet Development II
In the last article, we looked at a way to show the word NEW on pages when the resource was published recently. It’s common to develop a quick snippet to … Learn More
View ArticleMODX Snippet Development III
In the last article, we cleaned up our snippet code to make it more readable and to meet some standard coding practices. We’ll do some more of that in this … Learn More
View ArticleMODX Snippet Development IV
In the last article, we cleaned up our code and gave the snippet a single exit point. But there’s still a problem with the design. We’ll fix that in this … Learn More
View ArticleLog Failed Logins in MODX
A MODX forum user asked for a way to log failed logins when a user complained that they were entering the correct credentials and sometimes not getting in. Here’s a … Learn More
View ArticleMODX Snippet Development V
In the last article, we cleaned up our code, improved the design, and made the snippet more flexible by adding properties to the snippet tag. In this article we’ll look … Learn More
View ArticleMODX Snippet Development VI
In the last article, we changed the &interval property to make the snippet more user-friendly, and we did a little error handling. In this article we’ll look setting placeholders in … Learn More
View ArticleMODX Snippet Development VII
In the last article, we cleaned up our code, improved the design, and made the snippet more flexible by adding properties to the snippet tag. In this article we’ll look … Learn More
View ArticleUsing MODX Language Tags
In the last article, we looked at a few ways to use the MODX lexicon in a snippet. In this one, we’ll see an even simpler way that can be … Learn More
View ArticleMODX Upcoming Article Teaser
A MODX Forum user asked for a way to show upcoming blog articles as a teaser to get people to return to the site. In this article we’ll look at … Learn More
View ArticleMODX Upcoming Teaser Outside of Articles
In the previous article, we looked at a way to display a “teaser” for upcoming blog posts, but what if you want to use the same idea for non-articles? In … Learn More
View ArticleUpcoming Teaser with Multiple Resource Types
In the previous article, we looked at a way to display a “teaser” for upcoming blog posts and set the &classKey property to select the resources you want. In this … Learn More
View ArticleCalling MODX getResources in Code
In the previous article, we looked at a way to display a “teaser” for upcoming blog posts and set the &classKey property to select the resources you want. In this … Learn More
View ArticleStripWords Custom Output Modifier for MODX
Here’s a nice custom output modifier developed by MODX Forum user michelle84. It removes or replaces unwanted words or phrases and can be used with any tag in MODX revolution. … Learn More
View ArticleHardening Your MODX Site
I don’t claim to be an expert on hardening web sites, but I thought I’d write about something a little concerning, basically I’ve learned about how MODX protects your web site … Learn More
View ArticleStripWords with Multiple Replacements
In the previous article, we looked at a custom output modifier (and plugin) to remove or replace unwanted words or phrases from a web page. The output modifier ccould be … Learn More
View ArticleReplacing Strings with an Associative Array (PHP)
In the previous article, we looked at using str_replace with two separate arrays, one for the strings to replace, and one for the replacements. This isn’t always the most convenient … Learn More
View Article