O'Reilly logo

MODx Web Development by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Template variables

We have already discussed a special type of template variable called resource-specific variables.

In this section, we will cover the creation of template variables that are specific to templates. We will be using the concepts covered here, throughout the book, for practical examples. This section provides you with a theoretical background that eases the understanding when using template variables in the corresponding chapters. To explain template variables, let us consider a blog site. Each blog entry can have some values attached to it, such as a tag and a rating. A tag is just a value assigned to a blog page that specifies which category this blog page belongs to, and a rating allows the visitors to rate the quality of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required