RSS Character Limit
Permalink
Forgive me if I have missed this elsewhere, but I was wondering if there was a way to change the limit on the number of characters that the RSS block displays? It seems to be limited to 255 characters, and then just displays the '...' at the end if it's longer than 255. Where can that be changed?
That title column in the btRssDisplay table is just for whatever you decide to name your feed. I don't think it's related to what actually comes from the RSS feed. I don't think it stores any of the actual feed information in the DB (with regards to content it retrieves from the feed). But I'm still having trouble locating where it actually cuts this off...
True, that's why I added the ? to that statement, I can't see anything else in the database that would store RSS info so it must be generated at runtime from the page content.
Really not sure but I agree 255 characters is a pretty low character limit for a feed. Have you checked the config files?
Really not sure but I agree 255 characters is a pretty low character limit for a feed. Have you checked the config files?
In the RSS view template, it uses the shortText function of the text helper to cut off the text. It was just a matter of adding a new character limit as the second parameter of that function, which is set to 255 by default. In order words, the original code was:
And I changed it to:
echo $textHelper->shortText( strip_tags($item->get_description()) );
And I changed it to:
echo $textHelper->shortText( strip_tags($item->get_description()), 512
That second line of code should have the ); at the end...
Thanks for posting the answer. Not being a php programmer I couldn't customize the site without posts like this.
The only RSS table I can see in the database is btRssDisplay but that would mean the RSS content is stored in the title table?
If that's the case chances are you'll need to create an rss block of your own where you should be able to specify your own storage limitations, but this would mean creating your own table on the database not to mention the required PHP to make it all possible.