An open API service indexing awesome lists of open source software.

https://github.com/samgozman/gettvvalue

getTVValue interpretation for MODX Revolution users in TV-way
https://github.com/samgozman/gettvvalue

modx-revolution

Last synced: over 1 year ago
JSON representation

getTVValue interpretation for MODX Revolution users in TV-way

Awesome Lists containing this project

README

          

# getTVValue for MODx Revolution CMS

My interpretation for lost *getTVValue* method from MODX Evolution for MODX Revolution users in TV-way.

Just create snippet "getTVValue" with code from this git and use. :)

**Input parameters**

1. **resource** - *id of the page*
2. **tv** - *name of the template variable*

**Output parameters**

1. **TV value**

## Examples of usage

[[getTVValue? &resource=1 &tv=bottomPhone]]
[[getTVValue? &resource=1 &tv=mainPhone]]

It is useful when you need to use TV in a global chunk with a centralised change from one page.