Hi,
i’m a new user of modx since 1 month and i began to make my own snippet.
Inside my snippet, i’d like to access to a TV value. Is there a way through the modx api ?
A little precision, my TV is an @EVAL.
Native french speaker
Hi (salut ;-)
There are at least three functions in modx api to access to tv
- getTemplateVar
- getTemplateVars
-getTemplateVarOutput
The most appropriate in your case is the latest. it will return the tv value after processing @EVAL Bindings.
You should find in the document a presentation of every function listed above.
:-)