RSS Reader macro
The RSS Reader smartlet displays a RSS feed from a given RSS.
The RSS reader caches the RSS feed on the server, therefore a subsequent rendering does not require access to the source url.
Then, you can use this Smartlet from anywhere. Just add a call to the sml_FeedReader() Smartlet or choose the FeedReader from the Configure Smartlet CMS Addin.
Example
The image below shows an example of the RSS Reader smartlet.
The Toggle button (when showDescription has been set to 1 or 2) can be used to show/hide the descriptions. The Refresh button will refresh the displayed results. The icons on the upper right (More and Less) can be used to alter the number of displayed results.
Parameters
The table below gives an overview of the available parameters for the RSS Reader Smartlet.
Name | Type | Default | Description |
---|---|---|---|
url | locator | None | The source url of the RSS feed. |
min | integer | 3 | Minimum number of feed entries to display. |
max | integer | 20 | Maximum number of feed entries to display (if available). |
shown | integer | 6 | Default number of feed entries that will be displayed. |
showDescription | integer | 0 | 0=Hide feed description and toggle description button. 1=Show descriptions. 2=Hide description, but show the toggle description button. |
Technical details
The RSS Reader smartlet uses the FeedReader SXML macro internally. This macro retrieves the RSS feed and converts it to an SXML datatable.