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
  3. CHUNK Binding
  4. DIRECTORY Binding
  5. EVAL Binding
  6. FILE Binding
  7. INHERIT Binding
  8. RESOURCE Binding
  9. SELECT Binding
  10. Template Variable Input Types
  11. Template Variable Output Types
  12. Date TV Output Type
  13. Delimiter TV Output Type
  14. HTML Tag TV Output Type
  15. Image TV Output Type
  16. URL TV Output Type
  17. Adding a Custom TV Type - MODX 2.2
  18. Creating a multi-select box for related pages in your template
  19. 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
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

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

Learn more