We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23363
    • 43 Posts
    Hi I have a problem I can’t figure out. I try to make two Ditto calls on the same page, both using the same startId and both placed in the content.

    The idea is to make a list with new topics and another one with topics in the past. I use a TV with a timestamp for the filtering.

    Here are te two snippet calls.
    <ul>[!Ditto? &id=`event_new`  &startID=`61` &filter=`timestamp,@EVAL return time();,6` &summarize=`3` &paginate=`1` &paginateAlwaysShowLinks=`1` &tpl=`MainEvents` &dateSource=`timestamp` &sortBy=`timestamp` &debug=`1`!]</ul>
    <div id="ditto_pages"> [+event_new_previous+] [+event_new_pages+] [+event_new_next+] </div> 
    <br />
    <br />
    <br />
    <h1>Past events</h1>
    <ul>[!Ditto? &id=`event_old` &startID=`61` &filter=`timestamp,@EVAL return time();,3` &summarize=`3` &paginate=`1` &paginateAlwaysShowLinks=`1` &tpl=`MainEvents_old` &dateSource=`timestamp` &sortBy=`timestamp` &debug=`1`!]</ul>
    <div id="ditto_pages"> [+event_old_previous+] [+event_old_pages+] [+event_old_next+] </div> 


    Modx 0.9.6.2
    Ditto 2.1


    I hope somebody has a clue.

    Best regards,

    Jeroen
      • 23363
      • 43 Posts
      Since i’m not allowed to upload .html files and putting the saved debug pages in a .zip also doesn’t seem to work huh. Here is the link to that particular page.
      http://infologic.atunes.nl/events.html