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
- Host: GitHub
- URL: https://github.com/samgozman/gettvvalue
- Owner: samgozman
- Created: 2017-11-09T21:34:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T21:49:08.000Z (over 8 years ago)
- Last Synced: 2025-04-02T16:55:13.763Z (over 1 year ago)
- Topics: modx-revolution
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.