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
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
isn't it an option in it?
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 );
$textHelper->shortText( strip_tags($item->get_description()) );
to this:
$textHelper->shortText( strip_tags($item->get_description()) , 50 );
Thanks Tony thats done exactly what I needed it to do!
Cheers
Tim
Cheers
Tim
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
did they change something?
my rss feed summaries went back to the default
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.
How can you truncate based on words instead of characters?