Depth defaults have changed!
&descendentDepth is now &depth and defaults to 1
&multiLevel no longer exists
So, just append &depth=`#` to your calls when # is the number of levels deep you would like Ditto to see and you should be good.
// ---------------------------------------------------
// QE Renderer
// ---------------------------------------------------
function renderQELink($fields, $id, $QEPrefix,$customFields,$placeholders) {
global $modx;
foreach ($fields as $dv) {
$df = (in_array($dv,array_keys($customFields))) ? $customFields["$dv"] : $dv;
$value = (!$modx->hasPermission('exec_module')) ? $placeholders["[+$dv+]"]: $placeholders["[+$dv+]"]. '<a href="javascript:;" onclick="javascript: QE_OpenEditor('.$id.', \''.$df.'\', 1);" title="Edit '.$dv.'" class="QE_Link" style="display:none;">Edit : '.$QEPrefix.$dv.'</a>';
$placeholders["[+#$dv+]"] = $value;
}
return $placeholders;
}
[!Ditto? &startID=`26` &sortBy=`pub_date` &summarize=`1` &trunc=`0` &truncSplit=`0` &tagData=`tvNewsletterNumber` &tags=`3` &tpl=`NewsletterNews` !]
<!-- splitter --> <p><a href="http://www.gamesfaction.com/assets/forum/index.</p></!-->
This discussion is closed to further replies. Keep calm and carry on.