Excerpt of comments

Nov 24, 2010 at 2:55 PM
Edited Nov 24, 2010 at 2:56 PM

Hi, one more question: is there a way to return the excerpt of comments like there is for posts? I show the most recent comments on the site, but in case of long comments I don't want to show the whole but a excerpt. Do I have to extend the functionality by myself or is there a built in function which I didn't find?

Coordinator
Nov 24, 2010 at 3:09 PM

You can use: $macros.TruncateHTML(string html, int len)

Nov 25, 2010 at 6:34 AM

Thanks for this nice hint. Works perfectly!