News: auto summary

Talk about new features for CMSMS and modules.
Post Reply
kevin360

News: auto summary

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News: auto summary

Post 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]
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Feature ideas”