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

    Is it possible to call Jot on the basis of a parameter passed via a post request? Basically so that it can be used to add comment functionality to any content pulled from a DB.

    Cheers,

    DM
      • 19726
      • 239 Posts
      On the Jot Demo page (http://projects.zerobarrier.nl/modx/46.html) there is a demo which allows commenting on multiple pictures on one page by using the tagid parameter. This is done by using a snippet which passes the pictureid (from $_GET) to the tagid parameter in Jot. This might get you a step further.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Have a snippet that looks for the POST value, then does
        $modx->runSnippet('Jot', array('opt1' => 'val1','opt2' => 'val2'...));

          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org