... laughs... I spent quite a large amount of time trying to do the exact opposite....
Just for you I added &yearSortDir and &monthSortDir in Reflect so you can change the direction of the sort

Thank you Mark! You have solved all problems
Part of the last commit:
[FIXED] include issues (hopefully for good!)

The attached Ditto-trunk.tar.gz file is an updated SVN export from 2/20/06. Please use this instead of ditto2rc2.zip. The zip is still up there until people confirm that the php svn export script I’m using works.

//Ditto 2
$array_params['parents'] = '3';
$array_params['tpl'] = 'listingAnnuaire';
$array_params['extenders'] = 'request';
$array_params['tagData'] = 'tvlistCat,tvDepart';
$array_params['tagDelimiter='] = ',';
$array_params['hiddenTVs'] = 'listCat,Depart';
$array_params['displayArchive'] = '0';
//$array_params['emptyText'] = 'Aucune réponse';
$array_params['language'] = 'francais-utf8';
// $array_params['debug'] = '1';
$output .= $modx->runSnippet("Ditto2",$array_params);Ditto Version 2.0RC2 Debug Info Number of documents supposed to summarized : 3 Number of documents collected from the database: 0 Sort by : createdon Sort direction: DESC Start at item 0 and stop at 3 out of 0 Prefetch: Yes IDs None Snippet Parameters Parameters debug 1 displayArchive 0 extenders request hiddenTVs listCat,Depart parents 3 tagData tvlistCat,tvDepart tagDelimiter= , tpl listingAnnuaire Filter basic source value mode tvlistCat 1 1 tvDepart Tout 2 custom tagging delimiter source landing mode format givenTags caseSensitive tagFilter tvlistCat,tvDepart 3 onlyTags html Array 0 Fields display backend retrieved db tv custom published id pagetitle adressePro logoPro sitePro listCat Depart title tv db listCat Depart id published db tv pagetitle id adressePro logoPro sitePro Document Data No documents found.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND sc.published=1 AND sc.deleted=0 ) AND (sc.privateweb=0' at line 3 »
SQL: SELECT DISTINCT sc.id FROM `cape`.`x_site_content` sc LEFT JOIN `cape`.`x_document_groups` dg on dg.document = sc.id WHERE (sc.id IN () AND sc.published=1 AND sc.deleted=0 ) AND (sc.privateweb=0) GROUP BY sc.id ORDER BY sc.menuindex ASC [+image:isnot=``:then=`<a href="[~[+link+]~]"><img src="[+image+]" alt="[+title+]"</a>`+]
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: C:\sito\assets\snippets\ditto\classes\ditto.class.inc.php
Line: 418
Line 418 source: foreach ($documents as $null=>$doc) {
Parser timing
MySQL: 0.0517 s (9 Requests)
PHP: 0.6738 s
Total: 0.7255 s

This discussion is closed to further replies. Keep calm and carry on.