 |
? |
Author |
Message |
woolljam
Joined: 27 Feb 2006
Posts: 14
|
Posted: Fri May 19, 2006 10:19 pm |

|
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?
|
|
|

|
 |
MacSupport
Joined: 24 Feb 2005
Posts: 2393
|
Posted: Fri May 19, 2006 11:16 pm |

|
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
|
|
|
 
|
 |
|
|
|