Using <!-- splitter --> requires your user to be comfortable going into the HTML and putting it there rather than just relying on the rich text editor (which will convert the characters to HTML entities because it thinks it is content not a comment). This is straight forward to a coder but not for potential users who don’t necessarily know anything about writing code.
To allow a user to add the splitter in their rich text editor do this:
In your Ditto call you could make &truncAt=`+END_SUMMARY+`
Create a plugin that triggers on ’OnWebPagePrerender’ in System Event tab
Add this code to the plugin:
$dittoContainer = 149; // the number of the document containing your ditto call
$parent = $modx->documentObject[’parent’];
if($parent == $dittoContainer){
$output = $modx->documentOutput;
$output = str_replace("+END_SUMMARY+","",$output);
$modx->documentOutput = $output;
}
Hope that helps
Mike
Thank you very very much Mike...that works exactly as expected and i’ll be using it on quite a few sites.
This should have been added to Ditto as default as it’s such a handy function.
www.9thwave.co.uk
WEB | DESIGN | PRINT