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