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

Introducing template variables

Template variables give life to otherwise static layouts. They allow templates to have dynamic content. You have already seen an example of a resource-specific template variable when you used [*#content*] in the template that you created in the last section. Template variables are entities that may have different values in different pages for different users at different times. They can be embedded in a template or in a resource's content, in order to display the value that they store. The value of a template variable can generally be shown in a template by enclosing the name of the template variable within [* and *], like [*template variable name*]. This is a good time to check out the code of the templates that ...

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