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 Description
Evolution | LE | Koi | SE |
All | n/a | All | >=2.0 |
To display the item description, include the word "desc" in your iorder setting. For example:
CarpConf('iorder','link,date,desc');Display formatting options
- bidesc ("before item description") : Specifies text and/or HTML to be displayed before the item description.
- aidesc ("after item description") : Specifies text and/or HTML to be displayed after the item description.
- maxidesc ("maximum item description length") [CaRP >= 2.2.1] : Specifies the maximum number of characters (not including HTML tags) to output from the description. If maxidesc is zero ("0"), the entire description will be displayed, no matter how long.
- atruncidesc ("after truncated item description") [CaRP >= 2.2.1] : Specifies text and/or HTML to append to the descrition if it is longer than maxidesc. Note that when truncating, maxidesc is reduced by the length of atruncidesc so that the total length is equal to maxidesc.
- descriptiontags ("HTML tags allowed in the description") : Specifies a pipe character ("|") separated list of HTML tag names. Any tags other than those in the list will be removed before display. For paired tags like <a href="..."> and </a>, you should name both tags in the list. Only the tag name should be indicated, not the entire tag.
Example
CarpConf('iorder','link,desc'); CarpConf('bidesc','<i>'); CarpConf('aidesc','</i>'); CarpConf('maxidesc',100); CarpConf('atruncidesc','...'); CarpConf('descriptiontags','b|/b|i|/i');