4.13.1.7 :: RSS

Description


RSS ChunkThe <rssChunk> element allows you to pull data from an RSS feed, and display it on your site.

Quick Example


..snip..
  1.   <rssChunk>
  2.   <url>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml</url>
  3.   </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 ElementRSS propertyDefault
do_channel_titleChannel Title1
do_channel_imageChannel Image0
do_channel_linkChannel Link0
do_channel_descriptionChannel Description0
do_channel_languageChannel Language0
do_channel_copyrightChannel Copyright0
do_channel_managing_editorChannel Managing Editor0
do_channel_webmasterChannel Webmaster0
do_channel_publish_dateChannel Publish Date0
do_channel_last_build_dateChannel Last Build Date0
do_channel_categoryChannel Category0
do_channel_generatorChannel Generator0
do_channel_documentationChannel Documentation0
do_channel_cloudChannel Cloud0
do_channel_ttlChannel TTL0
do_channel_ratingChannel Rating0
do_channel_text_inputChannel Text Input0
do_channel_skip_hoursChannel Skip Hours0
do_channel_skip_daysChannel Skip Days0


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 ElementRSS propertyDefault
do_item_titleItem Title1
do_item_linkItem Link0
do_item_descriptionItem Description1
do_item_authorItem Author0
do_item_categoryItem Category0
do_item_commentItem Comment0
do_item_commentsItem Comments0
do_item_enclosureItem Enclosure0
do_item_guidItem GUID0
do_item_publish_dateItem Publish Date0
do_item_sourceItem Source0

Detailed Example


  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <layout>
  4.   <rssChunk>
  5.   <url>http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml</url>
  6.   <max_items>20</max_items>
  7.   <items_per_page>5</items_per_page>
  8.   <tease_length>25</tease_length>
  9.   <do_channel_description>1</do_channel_description>
  10.   <do_channel_image>1</do_channel_image>
  11.   <do_item_link>1</do_item_link>
  12.   <do_item_publish_date>1</do_item_publish_date>
  13.   </rssChunk>
  14.   </layout>
  15.  </wapl>

Contents