[[Ditto? &language=`svenska` &tpl=`smallist` &startID=`2` &summarize=`all` &tplLastRow=`smallistend`]]
231 if ($x == $stop -2) { function getCurrentTPL($x, $stop, $id, $format, $templates) {
global $modx;
// determine current template
$currentTPL = "default";
if ($x == 0) {
$currentTPL = "tplFirstRow";
}
if ($x % 2) {
$currentTPL = "tplAltRows";
}
if ($x == $stop -1) {
$currentTPL = ($x % 2 && $templates["tplLastRow"] == $templates["default"]) ? "tplAltRows" : "tplLastRow";
}
if ($id == $modx->documentObject['id']) {
$currentTPL = "tplCurrentDocument";
}
return $currentTPL;
}[!Ditto? &startID=`25` &tpl=`BlogArticlesAccueil` &tplAltRows=`BlogArticlesAccueil2` &summarize=`4` &dateFormat=`%d/%m/%Y %H:%M` &displayArchive=`0` &depth=`2` &hideFolders=`1` &sortBy=`pub_date`!]
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - Unknown column 'sc.pubdate' in 'field list' »
SQL: SELECT DISTINCT sc.pubdate,sc.id FROM `kudkuro_selleri`.modx_site_content sc LEFT JOIN `kudkuro_selleri`.modx_document_groups dg on dg.document = sc.id WHERE (sc.parent IN (2) AND sc.published=1 AND sc.deleted=0 ) AND (sc.privateweb=0) ORDER BY sc.pubdate DESC
... ehm... gosh!

@Marschant: I guess we’re hoping to use Reflect for the blog archive page in the 0.9.5B3 default content - once we have that together, I want to make sure we document and explain how it is done there.
I’ve just moved from Ditto 1.0.2 to 1.1 Beta in order fix a problem which cropped up with the sort ordering.
Anyway, I’ve just discovered a bit of an issue. I have a certain Ditto call which turns off normal truncation and ’truncation at the splitter’, and use it to summarise articles which DO have the splitter string in them.

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