CaRP: Caching RSS Parser - Documentation
CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
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 Evolution, Koi and LE only] The author or dc:creator of the item
- date: [CaRP Evolution, Koi and LE only] The pubDate or dc:date of the item
- desc: [Not supported by CaRP LE] The description element (the content) of the item
- image: [CaRP Evolution and CaRP Koi 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 Evolution and CaRP Koi 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');