[[+tv.URL:notempty=`<li><a href="[[+tv.URL]]">[[+tv.URL:ellipsis=`30`]]</a></li>`]]
This question has been answered by sottwell. See the first response.
$breakpoint = $usemb ? mb_strpos($output," ",$limit,$encoding) : strpos($output, " ", $limit);
[[+tv.URL:limit=`30`]]…
1. Is this using a chunk tpl for getResources?Yes
2. Does your URL TV use an Output Option?No : the output of the TV is a simple url like http://forums.modx.com
Try this instead (there is an HTML entity for ellipsis, it won't display the code here & # 8230 ; )It's working !
[[+tv.URL:limit=`30`]]
[[+tv.URL:limit=`30`]] (add Susan's character code here without the space)
[[+tv.URL:limit=`30`]] . . .
[[+tv.URL:MyLimit]]
/* MyLimit Snippet */ if (strlen($input) <= 30) { return $input; } else { return substr($input, 0, 30); }