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
Channel Description
Evolution | LE | Koi | SE |
All | n/a | All | >=2.0 |
To display the channel description, include the word "desc" in your cborder or caorder setting. For example:
CarpConf('cborder','link,date,desc');Display formatting options
- bcdesc ("before channel description") : Specifies text and/or HTML to be displayed before the channel description.
- acdesc ("after channel description") : Specifies text and/or HTML to be displayed after the channel description.
- maxcdesc ("maximum channel description length") [CaRP >= 2.2.1] : Specifies the maximum number of characters (not including HTML tags) to output from the description. If maxcdesc is zero ("0"), the entire description will be displayed, no matter how long.
- atrunccdesc ("after truncated channel description") [CaRP >= 2.2.1] : Specifies text and/or HTML to append to the description if it is longer than maxcdesc. Note that when truncating, maxcdesc is reduced by the length of atrunccdesc so that the total length is equal to maxcdesc.
- 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('caorder','desc'); CarpConf('bcdesc','<i>'); CarpConf('acdesc','</i>'); CarpConf('maxcdesc',100); CarpConf('atrunccdesc','...'); CarpConf('descriptiontags','b|/b|i|/i');