Jump to main content Jump to doc navigation

Output Types for TVs

Output Types (also called Renders) on Template Variables allow you to format the value of a TV to any different kind of output - such as a URL, image, date, or anything else you can think of.

For example, say you have a TV that uses a Textbox as its Input Type. The user would then choose an Image through the TV input on their Resource. That's great - except your TV only outputs the URL of the image! You want it to output the image itself. So you'd then choose the Output Render of the TV to be an Image, and boom! Your image TV now outputs the image directly! Sweet, huh?

MODX Revolution comes packaged with a few default Output Types. You can also create your own, if you know a little PHP. The list of pre-packaged ones are:

  1. Date TV Output Type
  2. Delimiter TV Output Type
  3. HTML Tag TV Output Type
  4. Image TV Output Type
  5. URL TV Output Type

See Also

  1. Creating a Template Variable
  2. Bindings
    1. CHUNK Binding
    2. DIRECTORY Binding
    3. FILE Binding
    4. INHERIT Binding
    5. RESOURCE Binding
    6. SELECT Binding
  3. Template Variable Input Types
  4. Template Variable Output Types
    1. Date TV Output Type
    2. Delimiter TV Output Type
    3. HTML Tag TV Output Type
    4. Image TV Output Type
    5. URL TV Output Type
  5. Adding a Custom TV Type - MODX 2.2
  6. Creating a multi-select box for related pages in your template
  7. Accessing Template Variable Values via the API

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Guest

Budget

$125 per month—let's make that $500!

Learn more