Nope, still not working :’(
I’ve played a bit with the code, and moved the chunk removal to the ditto snippet code (right after line #922) instead of the
ditto.class.inc.php
<?php
...
for ($x=0;$x<$stop;$x++) {
//REMOVE CHUNKS[start]
if (is_array ($removeChunk) && !empty ($removeChunk)) {
foreach ($removeChunk as $chunk) {
$resource[$x]['content'] = str_replace('{{'.$chunk.'}}',"",$resource[$x]['content']);
$resource[$x]['content'] = str_replace($modx->getChunk($chunk),"",$resource[$x]['content']);
//remove chunk that is not wanted
}
}
//REMOVE CHUNKS[end]
$template = $ditto->template->determine($templates,$x,0,$stop,$resource[$x]["id"]);
// choose the template to use and set the code of that template to the template variable
$renderedOutput = $ditto->render($resource[$x], $template, $removeChunk, $dateSource, $dateFormat, $placeholders,$phx);
...
?>
Not sure if it’s the best mothod overall, because I don’t know the complete Ditto, but it works for me

Boby