Apache Forrest > Plugins
Plugin: listLocations input
 
Font size:      

Feeder Plugin - Single Feed Example

This sample shows how a single RSS feed can be converted to an XDoc and included in a Forrest site. In order to do this you must first create a feedDescriptor file. This describes all the feeds that your project knows about. A simple example is:


<feedDescriptor>
  <feed id="BBCSport_UK">
    <url>http://news.bbc.co.uk/rss/sportonline_uk_edition/front_page/rss.xml</url>
  </feed>
</feedDescriptor>
    
    

In order to embed the data from the planetApache feed you create a link in the following form:

<a href="PATH_TO_FEED_DESCRIPTOR/FEED_DESCRIPTOR_NAME.rss.EXTENSION>

In this URL you must replace PATH_TO_FEED_DESCRIPTOR with the directory path to your feed descriptor file, FEED_DESCRIPTOR_NAME with the name of the descriptor file, and EXTENSION with the extension indicating the format you want the feed to be delivered in (i.e. html, pdf etc.)

For example /samples/feedDescriptor.rss.html will display the feed shown above.