We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17723
    • 221 Posts
    Hello,
    I’m tying to display set of news "collected" by ditto in a ticker widget. The problem that I encounter is that I get just one long list of newses separated by || . I’ve created a template for ditto call and separate newses by || as a message delimiter. It should separate newses, but unfortunately doesn’t. Does any one have solved this kind of problem?
    lux
      Lucas from AroundCyprus.net
      • 25483
      • 741 Posts
      ronaldlokers Reply #2, 18 years ago
      How do you call the ditto snippet? You need to have something like this in your tv variable:

      @EVAL return $modx->runSnippet("Ditto",array("tpl" => "<post><title>[+title+]</title><summary>[+summary+]</summary></post>"));


      You can read more about this function at the wiki: http://wiki.modxcms.com/index.php/API:runSnippet
        with regards,

        Ronald Lokers
        'Front-end developer' @ h2o Media

        • 17723
        • 221 Posts
        Thanks,
        that worked for me.
        I’ve used this call in my TV default input:
        @EVAL return $modx->runSnippet(’Ditto’, array(’parents’=>93, ’tpl’=>’NewsDisplayer’, ’tplLast’=>’NewsDisplayerLast’));

        Thank You for quick and accurate reply.
        lux
          Lucas from AroundCyprus.net