Integrate your Newsroom articles into your website via RSS feeds
This article will explain how to take your Newsroom articles and display them onto your website. For this we'll need the RSS feeds that are generated for every headline section of your Newsroom.
Table of contents:
- RSS feeds
- Feed types
- Feed parameters
- Sample feeds for testing
- Embed instructions
- Include newsroom content in your website's search engine
You can find your RSS feeds by clicking on the orange RSS feed icon next to any of your Headline modules in your Newsroom.
The URL in the address bar is the direct link to your feed. A typical RSS feed looks like this:
There are two types of feeds;
- Full archive feed
This feed contains all articles that were published in the Newsroom. e.g. https://domain.com/feed/
- Tagged feed: contains only articles that matches the specified tag. e.g. https://domain.com/tagfeed/language/tags/press-release
- Number of items:
All feeds show 25 items by default but this amount can be changed by adding a number parameter to your feed URL. e.g. https://domain.com/feed/10
By default, the data output is XML but can be changed to JSON or JSONP by adding the datatype parameter. eg. https://domain.com/feed/?datatype=jsonp
For tagfeed URLs this can be done by adding
/jsonto the URL, like so:
- Multiple tags
To combine multiple tags into a tagfeed, separate them by comma: https://domain.com/tagfeed/language/tags/example1,example2
This will show a tagfeed with items containing the 'example1' OR the 'example2' tag.
Sample feeds for testing
In case you don't have access to your newsroom RSS feeds yet, but you need a sample RSS feed to test your external widget, you can use the following feeds:
Please note that these feeds contain demo content and are not suitable for a production environment.
Most content management systems offer the option to embed a RSS feed but if that is not available to you, you can use the feed to extract the data and parse and loop over all the available content.
If you need help with that, Presspage offers a basic widget as a free service to get you started:
Disclaimer: Presspage does not offer further support on this widget. Styling and feature requests or potential bug fixes need to be developed by yourself.
Include newsroom content in your website's search engine
Usually, the search engine widget you have included in your website will crawl the Newsroom pages automatically. If you want to add the content manually, this is possible as well.
This can be done via both Google's Programmable Search Engine (formerly known as Google Custom Search) and AddSearch.