I’ll answer my last question.
a.) You have to change the TV EasyEvents_Start to "unixtime", because Ditto-Parameter "sortDir" only works with this format (?).
b.) Append three lines in your config-file in misc-section (german dateformat - change it, if you like):
$_misc['dittoDateformat'] = '%d.%m.%Y';
$_misc['dittoTpl'] = 'DE_tplEasyEvent';
$_misc['dittoSum'] = '5';
These values will be used in the Ditto-call (set dittoSum to ’all’ if you want to show all events) - see d.).
c.) You need a chunk [the name is "DE_tplEasyEvent" -see b.)] like this - you have to change the href-part and "28" (id of your calendar-page) to your needs:
<div class="easyEventsList_group">
<div class="easyEventsList_heading"><h2>[+date+]</h2></div>
<div class="easyEventsList_title"><a href="/de/home/kalender/simcopack_online.html?ee_id=[+id+]" onclick="return EasyEvents.getDetails('28',[+id+])">[+pagetitle+]</a></div>
<div class="easyEventsList_description">[+description+]</div>
</div>
d.) Change the snippet "EasyEvents_ListMini" at the end (append second line with "$listDetails .= ..."):
// Default message if no events found
if ( !$listDetails )
{
$listDetails .= $g_easyEvents->templify('noEvents',array($g_easyEvents->misc['missingEventsMessagePlaceholder'] => $g_easyEvents->lang['noEvents']));
$listDetails .= $modx->runSnippet("Ditto",array( 'parents' => $nodes, 'sortBy'=>'EasyEvents_Start','sortDir'=>'DESC','tpl'=>$g_easyEvents->misc['dittoTpl'],'summarize'=>$g_easyEvents->misc['dittoSum'],'dateSource'=>'EasyEvents_Start','dateFormat'=>$g_easyEvents->misc['dittoDateformat']));
}
}
$modx->setPlaceholder($listHolder,$listDetails);
return;
?>
You’re done.