Dynamic content collections (e.g. news) can be shared on or outside your site.
Last reviewed: October 15, 2024
Browsers handle RSS feeds differently and those without a built-in RSS reader will display your feed as raw XML code or even throw up an error (e.g. Firefox and IE have RSS readers, but Chrome does not).
Using RSS, UBCMS content, especially news or announcements, can be embedded onto another website or pushed to subscribers. The technology is dated, but has regained some popularity (read more about RSS). For the UBCMS, setting up an RSS feed requires additional steps in the 'backend' (in CRXDE).
While any UBCMS page with a list can be set as an RSS feed, we recommend building a page for each feed in a clearly labeled /rss folder in your site. This will help with stewardship, and reduce the risk of that page being accidentally modified or deleted.
In the examples, the News Center feeds have been shortened from
/content/www/news/rss/________/jcr:content/par/list.txt.rss
to /content/www/news/rss/________.rss
To pull an external RSS feed into your UBCMS page, you will need to create a 'feeds' folder with a special Shared Content page, and then reference that page on your webpage using a Shared Content Reference.
The UBCMS runs an import script that scans your source feed for new content. When each item is imported, an identifier is cached by the UBCMS so it will not be imported again. This identifier is based on the fields available from the import, such as the <link> or <db:identifier>. The UBCMS does not do extensive comparison, so changes in title, time, or description at the source will not be recognized and the UBCMS version will not change. To change these details, delete the source item and introduce a new version into your feed.
Be careful to use the right folder name. /content/shared/..../feeds is required for this to work automatically.
Learn more about using shared content.
Use a Shared Content Reference to pull the feed through your new Shared Content page onto your UBCMS Web page.
> Read more about using the Shared Content Reference.
Please Note: This solution does not allow any control over the feed, such as the number of entries displayed.
Use a List Builder Component to gain more control , including the number of items revealed from the feed.
Using a List Builder, you can control how many items from the feed you wish to display.
> Read more about the List Builder Component.
An example -- below are the first entries from the Music Library's news feed (http://libweb.lib.buffalo.edu/blog/music/?feed=rss2) displayed using a List Builder component.
While your feed may be set to refresh frequently (default is 300 seconds), the page(s) it is displayed on may not update as regularly due to server caching. To ensure each page displaying the feed stays current, set a Flush Trigger in its Properties.
Best Practice: In the Properties Advanced tab, under Server Caching, Add a Flush Trigger referencing your /feed page (read more about Flush Triggers) on each page that displays your feed.
From 5 a.m. - 9 p.m. daily limits are set to reduce server load. Feed imports are limited to 50 items for each import. If an import exceeds that number of records, the import will not occur until after the 9 p.m.
Best Practice: Keep your feed below 50 items.
Also, storing a large number of blog items locally in the UBCMS will interfere with synchronisation.
Best practice: Use the default removal strategy setting 'remove items not present in feed' -- do not keep all items in the UBCMS.
The UBCMS only makes a simple comparison during the import to see if a record already exists. It does not check each field in the entry, so changes to the headline, date, time, description, etc. will be ignored and the existing record in the UBCMS will be displayed.
Best Practice: