By bryansd on
Overall, the aggregator module in the core works fine for me. However, with copyright concerns, I wouldn't mind limiting the feed from various sources to a limited set of lines/characters. In other words, instead of displaying the whole content from a feed, I'd like to create a teaser to the article I'm aggregating.
Does anyone know if this can easily be done with minor modification to the module? If not, which contributed aggregation/news feed module is in favor these days that could do the job?
Thanks, Bryan
Comments
Limit Feed Item text
I've been exploring all manner of ways to create teasers with Aggregator feeds and still haven't come up with an implemented solution.
However, my 17 yr-old son created this hack for me, once I identified the relevant function in the module.
Create a copy of your original aggregator.module and then modify the code as shown:
It's not particularly elegant, but it does limit the display of text from each feed item.
If someone wants to do the
If someone wants to do the same in D6 you can add a theme-preprocess-aggregator-item function to your template with something like: