CaRP: Caching RSS Parser - Documentation
Item Formatting Options
iorder ("item order") :
Specifies which elements to display in each item.
List any of the following, separated by commas.
Note that not all newsfeeds contain each of these elements.
Click on each for information about formatting that element.
- author: [CaRP Koi and CaRP Evolution only] The author or dc:creator of the item
- date: [CaRP Koi and CaRP Evolution only] The pubDate or dc:date of the item
- desc: The description element (the content) of the item
- image: [CaRP Koi and CaRP Evolution only] The item image
- link: The item title displayed as a hyperlink
- title: The item title displayed as text
- url: The URL specified in the item link element
- podcast: [CaRP Koi and CaRP Evolution only] The URL of a podcast (an audio file pointed to by an enclosure element)
Example:
require_once '/path/to/carp.php';
CarpConf('iorder','image,link,date,author,desc');
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
maxitems ("maximum number of items") :
Specifies the maximum number of items to display.
If the feed contains more items, some of them will not be displayed.
The default value is 15.
Example:
require_once '/path/to/carp.php';
CarpConf('maxitems',5);
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
bi ("before item") :
Specifies text and/or HTML to display before each item.
ai ("after item") :
Specifies text and/or HTML to display after each item.
bitems ("before items") :
Specifies text and/or HTML to display before beginning to display items.
aitems ("after items") :
Specifies text and/or HTML to display after displaying all the items.
Example:
require_once '/path/to/carp.php';
CarpConf('bitems','<ul>');
CarpConf('aitems','</ul>');
CarpConf('bi','<li>');
CarpConf('ai','</li>');
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');