I am having some issues as well
[[Ditto? &parents=`[[*id]]` &tpl=`xml_content` &sortBy=`createdon`]] ** Problems seems to be [[*id]]
Result: No documents found.
[[Ditto? &parents=`10` &id=`news1` &tpl=`news` &sortBy=`editedon` &depth=`3`]] ** Issue editedon, pub_date, publishedon, I’ve tried &orderBy as well..
Result: No documents found.
Not exactly sure what’s going on here.
one problem seems to be orderBy or sortBy
if I use
the generated sql-query ends with:
ORDER BY modResource.id menuindex
what is not that what we want and ends as an mysql-error, of course.
I think we have to seek arround here:
/* determine sort conditions */
if ($randomize != 0) {
$c->sortby('rand()', '');
} else {
$orderBy['sql'];
$sortBy = explode(' ', $orderBy['sql']);
$c->sortby($sortBy[0], $sortBy[1]);
}