System:RSS
From Aspen Documentation
For full public method documentation, see the API Manual.
Currently, Aspen uses the RSSBuilder class for handling all of it's rss capabilities. With this class, we have a very solid and stable rss generation tool, but also one that supports several different formats of the feed.
Currently using version 2.2.1. Basic Documentation
The RSS class is not loaded by default into Aspen. You must place the following configuration directive into one of your configuration files.
$config['load_add_core_class'][] = array('classname' => 'RSSBuilder','folder' => 'formats/rss','filename' => 'class.RSSBuilder.inc');
You may then use the rss class by setting the basic required settings:
/* set the base params for the feed */ $encoding = 'UTF-8'; $about = 'http://www.aspen-framework.org'; $title = 'Example RSS Feed'; $description = 'Very interested RSS feed from our website.'; $rssfile = new RSSBuilder($encoding, $about, $title, $description); /* data for a single RSS item */ $about = $link = 'http://www.aspen-framework.org'; $title = 'Example RSS Iem Headline'; $description = 'Here is a standard content block within the rss feed.'; $rssfile->addRSSItem($about, $title, $link, $description); $rssfile->outputRSS('2.0');