Back to DeveloperDocs

HOWTO: RSS 2.0 Feeds with Campsite

You can generate RSS 2.0 feeds from campsite with the addition of a small PHP script combined with a campsite template, see the attached file.

  • rss.php – adds appropriate Content-Type headers plus checks for well-formed XML, translates relative links into absolute links
  • rss.xsl – displays RSS 2.0 feed as XSLT-transformed HTML in Moz/Firefox browsers
  • rss-valid.gif – icon used on the XSLT-transformed RSS feed.
  • look/ – some files to drop into your template directory.

The easiest way to get started with this is

cd /var/www/campsite/campsite (your campsite instance directory)
tar jxvf campsite-rss-0.2.bz2

You will then need to go into the campsite admin system and edit the templates, so that the parse adds them to its database.

Note that there is also a way to publish RSS 1.0 feeds with campsite, see CSRSSPodcasting tar.gz

JP

Attachments