This is the documentation for concrete5 version 5.6 and earlier. View Current Documentation

The Feed helper makes it easy to parse RSS feeds with a concrete5 application. This helper is used by the RSS Feed Displayer block. It is actually a wrapper around the popular Simplepie library

Loading the Helper

$fh = Loader::helper(‘feeds’);

Loading an External RSS Feed

$feedObject = $fh->load(‘http://www.mysite.com/path/to/feed.xml’); 

This returns a SimplePie $feedObject which can then be manipulated. It is easy to iterate through the number of items in the feed, grab data about each individual items, and even grab an item’s enclosure(s). You can learn more about the methods available on the Feed Object at the Simplepie Documentation.

Loading Conversation