Hi guys, bit of a noob question here but hopefully easily solved:
I was trying to find a way to output a summary of my "content" field with Ditto, IE limit the amount of characters shown, and I found this seemingly handy placeholder:
[+content:character_limit=`35`+] here:
http://wiki.modxcms.com/index.php/PHx/CustomModifiers#phx:character_limit
I have put this placeholder in my Ditto tpl but it’s not working, I reckon I’ve not done something. Is it something to do with the php code seen underneath on the link above:
<?php
$output_truncated = substr($output, 0, $options);
return $output_truncated;
?>
Any help much appreciated.
Alex.