FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Memberlist ?????Register ?????Profile? ????Log in
?Is there a way to limit Item Description to not show full View next topic
View previous topic
Post new topicReply to topic
Author Message
woolljam



Joined: 27 Feb 2006
Posts: 14

PostPosted: Fri May 19, 2006 10:19 pm Reply with quoteBack to top

I'd like to truncate the item description so that it never shows more than a certain number of lines of a feed, maybe 4 or 5, requiring the user to click through the Item Title to get to the actual blog/feed and full content.

Is there a way to do this?
View user's profileSend private message
MacSupport



Joined: 24 Feb 2005
Posts: 2393

PostPosted: Fri May 19, 2006 11:16 pm Reply with quoteBack to top

woolljam wrote:
I'd like to truncate the item description so that it never shows more than a certain number of lines of a feed, maybe 4 or 5, requiring the user to click through the Item Title to get to the actual blog/feed and full content.

Is there a way to do this?


Yes the newest version have this built in, with a limitation. If the description has HTML in don't limit because it is likely to split in the middle of the HTML and that would likely destroy the page layout. Now that is said....

You can edit rss2html.php and change one of the following 4 variables from 0 to the length:

Code:

? ? $limitFeedTitleLength = 0;
? ? $limitFeedDescriptionLength = 0
? ? $limitItemTitleLength = 0;
? ? $limitItemDescriptionLength = 0;


Or you can pass one of these 4 on the URL:

Code:

? FeedTitleLength
? FeedDescriptionLength
? ItemTitleLength
? ItemDescriptionLength


Jim
View user's profileSend private messageVisit poster's website
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme