Rss displayer

Permalink
Hi Guys,

Does anyone know how to truncate the summary the RSS displayer brings in from an RSS feed. It works great but I just want smaller summaries.

Thanks in advance

Tim

 
Mnkras replied on at Permalink Reply
Mnkras
isn't it an option in it?
Tony replied on at Permalink Best Answer Reply
Tony
copy the file /concrete/blocks/rss_displayer/view.php to /blocks/rss_displayer/view.php, and then change this line:

$textHelper->shortText( strip_tags($item->get_description()) );

to this:

$textHelper->shortText( strip_tags($item->get_description()) , 50 );
djatomicdog replied on at Permalink Reply
Thanks Tony thats done exactly what I needed it to do!

Cheers

Tim
basspro replied on at Permalink Reply
this solution worked fine before i upgraded to 5.4.1.1

did they change something?

my rss feed summaries went back to the default
sniggitysnax replied on at Permalink Reply
sniggitysnax
This is an old post but if you make the changes straight into the concrete blocks folder, your changes will have been overwritten when you updated concrete. You have to copy the block into your blocks folder outside of concrete and make your changes there. Then you can update at will without affecting the changes that you have already made.
jkernick replied on at Permalink Reply
jkernick
How can you truncate based on words instead of characters?