Quantcast
Channel: Bob Ray – Arvixe Blog
Browsing all 115 articles
Browse latest View live

Make Things Appear and Disappear without JQuery in MODX

Sometimes, you just want to hide some text until the user clicks on a something. You don’t want any fancy effects and you don’t really need JQuery. Maybe it’s a … Learn More

View Article


MODX 2.2 CMPs: An Anatomy Lesson

A while back, I wrote an article describing the anatomy of MODX Revolution CMPs. The article was based on the structure of pre-MODX 2.2 CMPs and it still has some … Learn More

View Article


Get TV Values in MODX — The Fast Way

In MODX snippets and plugins, you often need to get the value of a Template Variable for a given Resource. We’ll look at three ways to do this, including a … Learn More

View Article

Get Children’s TV Values in MODX

In the previous article, we looked at several methods to get the TV value for a particular resource. In this one, we’ll see how to get the TV values of … Learn More

View Article

Dude, Where’s My CSS? [MODX]

Sometimes, when you load up a page, say for a snippet you’re working on, everything on the page runs down the left margin and is all in the same font … Learn More

View Article


Changing the Name of the (Anonymous) User in MODX

It’s common to have a greeting somewhere on your pages that looks something like this: The problem with this is that when a user is not logged in, they’ll see … Learn More

View Article

[MODX] Don’t Be a Nester

When I troubleshoot people’s sites, one thing I often notice is a tendency toward unnecessary nesting. On one site I looked at recently, there was a chunk tag in the … Learn More

View Article

How To Tell If a Table Exists in MODX

This is a quick tip. It isn’t usually an issue with MODX tables, but if you create custom database tables in the MODX database, you may eventually need some code … Learn More

View Article


[MODX] Why Extend modUser?

If you read the MODX forums, you’ve probably seen a number of posts suggesting that people extend the modUser object to store user-related data that goes beyond the built-in user-related … Learn More

View Article


Why Extend modResource in MODX?

In the previous article, I discussed the hows and whys of extending the modUser object. In this one, I want to do the same for the modResource object. This article … Learn More

View Article

LogPageNotFound Dashboard Widget for MODX

Almost all the credit for this blog post should go to Susan Ottwell (sottwell) who developed this widget and was kind enough to share it with me. The LogPageNotFound extra … Learn More

View Article

Get a Link to the First Child of a Resource

A MODX user asked for a snippet to create a link to the first child of the current resource, using the child’s pagetitle as the link text. This snippet will … Learn More

View Article

Understanding MODX System Events and Plugins

One of the great things about computers is that you can make them do some of the tedious, repetitive, grunt work for you. Say for example, that you want to … Learn More

View Article


Create MODX User Groups in a Plugin

As I said in the previous blog article, plugins can be a great way to automate repetitive tasks in MODX. In this article, we’ll look at an example that puts … Learn More

View Article

Validating Zip Codes for the UserGroupFromZip Plugin in MODX

In the last article, we looked at how to use a plugin to put users into a user group based on their zip codes (or whatever is in the ‘zip’ … Learn More

View Article


Set Resource Fields and TV Values in a Plugin

In previous articles, we looked at how plugins work and saw how to perform actions when a user is saved in the Manager. In this one, we’ll see some plugin … Learn More

View Article

Displaying the Age of a Resource in MODX

You might sometime have a need to display the age of a resource. The MODX Forums, for example, show how long ago a post was entered in Years, months, weeks, … Learn More

View Article


Understanding the MODX getOption() Method

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

View Article

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 … Learn More

View Article

[MODX] Selecting Chunks – The Fast Way

It can make your life easier if you use the same Template on many pages, but you might not want them all to look exactly the same. Say, for example … Learn More

View Article
Browsing all 115 articles
Browse latest View live