We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23708
    • 35 Posts
    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
      • 11975
      • 2,542 Posts
      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.


      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 23708
        • 35 Posts
        Ok thank you (merci merci merci smiley) that’s the function i needed.

        After many tries (and one hour lost) i found why this function always return me false, my current document wasn’t pusblished :-(
        Now it works fine (et ça me retire une sacrée épine du pied ^^), i can continue to work on my website.
          Native french speaker

        This discussion is closed to further replies. Keep calm and carry on.