The RSS feed macro embeds an RSS feed on a page. It can display the contents of external feeds, or of internal feeds generated by Confluence. To display blog posts or to list recently updated pages in a space, use the Feed Builder to create an internal feed, then render it using this macro.
HTML inside an RSS feed can contain active scripting components. This means that it would be possible for a malicious attacker to present a user of your site with script that their web browser would believe came from you. Such code could be used, for example, to steal a user's authentication cookie and give the attacker their Confluence login password. |
The RSS macro will only be available if it has been enabled by your Confluence administrator. Also, your Confluence Administrator can define a whitelist of trusted URLs. You will see an error message on the Confluence page, if the included URL is not in the whitelist.
On this page:
To insert the RSS feed macro into a page using the Macro Browser,
|
Once you've found the RSS feed macro and have added the required parameter values, click 'insert' to add it to your page. |
Use the Wiki Markup editor to edit the page and insert the RSS macro. Replace the '
http://www.example.com/rss/ |
{rss:url=http://www.example.com/rss/}
|
Parameter |
Required? |
Default |
Description |
|---|---|---|---|
RSS Feed URL |
yes |
none |
The URL of the RSS feed link you want to show. |
Maximum Number of Entries |
no |
15 |
Limit the number of entries displayed. |
Show Item Titles Only |
no |
false |
Show only the titles of the news items, not the content. |
Show Name/Title of RSS Feed |
no |
true |
Hide the feeds title bar. |
{rss:url=http://host.com/rss.xml|max=5}
|
{rss:url=http://host.com/rss.xml|showTitlesOnly=true}
|
{rss:url=http://host.com/rss.xml|titleBar=false}
|
What you need to type:
{rss:url=http://www.abc.net.au/news/syndicate/breakingrss.xml|max=5|showTitlesOnly=true} |
What you will get:
By default, the RSS Feed macro caches the feed results for 60 minutes before fetching the data again.
If you wish to change the default caching, use the {cache} macro to define how often the RSS Feed macro fetches the feed updates. You may want to set the cache to a longer period, so that your page loads faster. Or you may want to retrieve feed results more often, if you need to see the updates sooner. You will need to install the Cache plugin page onto your Confluence site.
To enable caching:
{cache:refresh=30m}
{rss:url=http://rss.news.yahoo.com/rss/stocks|max=5}
{cache}
|
Your Confluence Administrator can set up a whitelist of allowed URLs. If this is the case, you may see an error on the pages which contain the RSS macro.
You can add your Confluence username and password to the feed URL, so that the RSS Feed Macro can log in to Confluence.
Please note that if you do this, someone with access to your RSS newsreader configuration can read your password.
RSS feeds which require authentication cannot be accessed using the RSS Macro.
This applies only to Confluence instances which have enabled HTTPS for all content. If your site is fully HTTPS, the RSS macro cannot access internal feeds. To enable the RSS macro to access internal feeds without affecting your HTTPS setup, enable local-only HTTP access:
Subscribing to RSS Feeds within Confluence
Adding a username and password to Confluence RSS feeds
Tracking Updates to Confluence Pages and Spaces
Working with Macros
Configuring a URL Whitelist
Return to the Confluence User's Guide.