Page 1 of 1

News: auto summary

Posted: Sun Jul 09, 2006 4:42 pm
by kevin360
Would it be possible to add a parameter to the News module, say "summary_length", that would take that number of characters from the description and display it as the summary?  And then you would have the link for the full article if the person wanted to read the rest.

Re: News: auto summary

Posted: Sun Jul 09, 2006 5:26 pm
by calguy1000
A better, more vursatile solution would be a smarty substr modifier that did a strip tags, and then a substr.

You'd use it like this {$entry->summary | substr start=0 len=200} or some such thing.

[me=calguy1000]adds it to his todo list.[/me]