We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4996
    • 12 Posts
    Hello all.
    Excuse me for poor english.
    I can`t find solution of my problem.
    I need to modify value of TV-var of current document. I want use the snippet for this task. But I can`t discover any API function are may help. It is possible?
    Direct SQL query can help but this method is linked with CMS engine. Therefore it is undesirable.
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: che at Jul 06, 2007, 12:16 PM

      Hello all.
      Excuse me for poor english.
      I can`t find solution of my problem.
      I need to modify value of TV-var of current document. I want use the snippet for this task. But I can`t discover any API function are may help. It is possible?
      Direct SQL query can help but this method is linked with CMS engine. Therefore it is undesirable.

      This is one of the many motivations for the core rewrite which will provide much more consistent and easier to use API’s when it is released with 0.9.7. The best solution currently is unfortunately to duplicate the functionality the manager uses to save the TV’s (or the DocManager module), both of which currently use logic and direct SQL queries to accomplish this. There is also something called tvExplorer under development that might provide good examples...
        • 7923
        • 4,213 Posts
        You could use this unofficial api, also see its support thread.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 4996
          • 12 Posts
          To OpenGeek.
          Thank You. I am not wastly expect a correct solution because i was explore MODx code (with my competention level).
          Accordingly You are saving my time.

          To doze.
          Мost likely Docmanager is searched instrument. Thanks.