Description

The
<rssChunk> element allows you to pull data from an RSS feed, and display it on your site.
Quick Example
..snip.. <rssChunk>
- <url>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml</url>
</rssChunk>
..snip..
Child Elements
url
The URL of the RSS feed you want to pull the data from.
max_items
The maximum number of items to read from the RSS feed (Default:10)
items_per_page
The number of items to display per page (Default:5)
graphic_scale
The scale of the graphic for an open RSS item as a percent of the screen width (Default:75)
icon_scale
The scale of the graphic for an available RSS item as a percent of the screen width (Default:30)
tease_length
The number of characters to use for the teaser text. (Default:50)
show_no_tease
Set to 1 to hide the teaser text altogether, or 0 to display it. (Default:0)
Channel Options
These options show or hide elements of the RSS feed relating to the channel. Set them to 1 to show or 0 to hide. For more information visit
RSS Channel on w3schools
| Child Element | RSS property | Default |
|---|
| do_channel_title | Channel Title | 1 |
| do_channel_image | Channel Image | 0 |
| do_channel_link | Channel Link | 0 |
| do_channel_description | Channel Description | 0 |
| do_channel_language | Channel Language | 0 |
| do_channel_copyright | Channel Copyright | 0 |
| do_channel_managing_editor | Channel Managing Editor | 0 |
| do_channel_webmaster | Channel Webmaster | 0 |
| do_channel_publish_date | Channel Publish Date | 0 |
| do_channel_last_build_date | Channel Last Build Date | 0 |
| do_channel_category | Channel Category | 0 |
| do_channel_generator | Channel Generator | 0 |
| do_channel_documentation | Channel Documentation | 0 |
| do_channel_cloud | Channel Cloud | 0 |
| do_channel_ttl | Channel TTL | 0 |
| do_channel_rating | Channel Rating | 0 |
| do_channel_text_input | Channel Text Input | 0 |
| do_channel_skip_hours | Channel Skip Hours | 0 |
| do_channel_skip_days | Channel Skip Days | 0 |
Item Options
These options show or hide elements of the RSS feed relating to the item. Set them to 1 to show or 0 to hide. For more information visit
RSS Item on w3schools
| Child Element | RSS property | Default |
|---|
| do_item_title | Item Title | 1 |
| do_item_link | Item Link | 0 |
| do_item_description | Item Description | 1 |
| do_item_author | Item Author | 0 |
| do_item_category | Item Category | 0 |
| do_item_comment | Item Comment | 0 |
| do_item_comments | Item Comments | 0 |
| do_item_enclosure | Item Enclosure | 0 |
| do_item_guid | Item GUID | 0 |
| do_item_publish_date | Item Publish Date | 0 |
| do_item_source | Item Source | 0 |
Detailed Example
- <?xml version="1.0" encoding="UTF-8" ?>
- <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
- <layout>
<rssChunk>
<url>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml</url>
<max_items>20</max_items>
<items_per_page>5</items_per_page>
<tease_length>25</tease_length>
<do_channel_description>1</do_channel_description>
<do_channel_image>1</do_channel_image>
<do_item_link>1</do_item_link>
<do_item_publish_date>1</do_item_publish_date>
</rssChunk>
- </layout>
- </wapl>