Template Variable Output Types
Last updated May 5th, 2019 | Page history | Improve this page | Report an issue
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
Budget
$306 per month—let's make that $500!
Learn moreOutput 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:
- Date TV Output Type
- Delimiter TV Output Type
- HTML Tag TV Output Type
- Image TV Output Type
- URL TV Output Type
See Also¶
- Creating a Template Variable
- Bindings
- CHUNK Binding
- DIRECTORY Binding
- EVAL Binding
- FILE Binding
- INHERIT Binding
- RESOURCE Binding
- SELECT Binding
- Template Variable Input Types
- Template Variable Output Types
- Date TV Output Type
- Delimiter TV Output Type
- HTML Tag TV Output Type
- Image TV Output Type
- URL TV Output Type
- Adding a Custom TV Type - MODX 2.2
- Creating a multi-select box for related pages in your template
- 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
Budget
$306 per month—let's make that $500!
Learn more