I'm not claiming this is the best method, only that this is what we did in San Diego with Zapata's help.

Simple Rss Feed Setup in Mir

Rss Template

First, you need to add an rss template to etc/producers in your mir directory.

Our template is here:

current version: https://codecoop.org/plugins/scmcvs/cvsweb.php/etc/producer/rss.1-0.template?rev=1.2;cvsroot=imc-sd

version history: https://codecoop.org/plugins/scmcvs/cvsweb.php/etc/producer/rss.1-0.template?cvsroot=imc-sd

Add producer

Second, you need to add a producer to your producers.xml file, ours is here, right after the media producer:

<!-- rss -->
  <nodedefinition name="RSSChannel">
      <string name="articleSelection"/>
      <integer name="limit" defaultvalue="15"/>
      <string name="channelidentifier"/>
      <string name="channelfilename"/>
      <string name="channeltitle"/>
      <string name="channelpublisher" defaultvalue="san diego indymedia" />
      <string name="channeldescription" defaultvalue="features from san diego"/>
      <string name="generator" defaultvalue="rss.1-0.template"/>
      <string name="articleprefix" defaultvalue="http://sandiego.indymedia.org/en"/>
      <string name="iconprefix" defaultvalue="http://sandiego.indymedia.org"/>
      <List key="articles" table="content" selection="${articleSelection}" order = "webdb_create desc, date desc" limit="limit"/>

  <producer name="rss">

      <verb name="generate" default="1" />
          articleSelection="to_article_type in (${articletype.feature},${articletype.oldfeature},${articletype.startspecial})"
          channeltitle="san diego imc"
          limit="20" />

Here it is in codecoop:


The url of the feed is determined by "channelfilename", so ours is


Schedule producer

Then, edit etc/config.properties so that when someone hits "generate all new", the rss file gets regenerated .

To do this, change this line in your config.properties file to add rss.run:

# Which producers need to be called after the "produce all new" link is clicked from admin AllNewProducers= media.new;articles.changed;startpage.run;synchronization.run;rss.run

Since this is a feature rss feed, its probably better to have the rss generated with features get added, but I'm not exactly sure how to do that. Also, our images don't show up in our feed, and I'm not sure why.

Hope this helps!

-- created - SdLotus - 09 Dec 2005
Topic revision: r2 - 12 Dec 2005, SdLotus
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback