We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15083
    • 697 Posts
    Hi guys,

    Im passing a TV into a snippet.
    I want to set the value of the TV however in another snippet and then pass it into snippet 2.

    The problem is that while snippet one updates the TV value in the DB, the old value is in the TV when the page loads. Its not until I refresh the page that the whole thing works...

    Is there a way to update the TV that is already loaded?

    Cheers,

    J
      • 15083
      • 697 Posts
      Use this little gem: $modx->runSnippet
      Allows you to run a snippet from a snippet!!!
      Rather than manipulate TV’s and feed them in, just do it all in one snippet and output the lot.