Blog Home

Show User Info Based on a TV I

Select from a drop-down list of users and show the selected user's information on a page

Using modTemplateVarResource in a Plugin

Example code for using modTemplateVarResource to set a TV based the value of one or more other TVs

Using modTemplateVarResource in a postHook

Setting TV values with modTemplateVarResource based on user input from the Register form

Using modTemplateVarResource with a Default Value

How to handle the modTemplateVarResource object when the value for a particular resource might be set to the default value of the TV.

Understanding the modTemplateVarResource Object

Getting the value of a TV for a particular resource via the modTemplateVarResource object without touching the modTemplateVar (TV) object.

Template Report with Pagetitles

Add pagetitles to the template report created in the previous Blog article.

Template Report

A snippet that will create a report giving the number of pages that use each template, with separate data on published and unpublished resources.

Using getValue() with TVs

Retrieving TV values fast with getValue()

Get Child TV Values

Getting the TV values for children of the current resource in MODX.

Get TV Values -- The Fast Way

A look at various methods for getting TV values in MODX