News: auto summary
News: auto summary
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: News: auto summary
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]
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.
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.