package rssonlytop; # make an index only for the toplevel when producing rss # no feeds for archives and sub-categories are to be made. use strict; # uuuugly. put this in the blosxom config file: $rssonlytop::enabled=1; # filename_ and then enabling via config file: doesn't work, config file # is executed earlier and tests for _ overwrites the setting. # filename_ and then enabling via prefs file: doesn't work, prefs is executed # way later... use vars qw($enabled); sub start { return $enabled; } sub filter { my ($pkg,$files_ref,$others_ref)=@_; # this is a lousy interface violation # but blosxom 2.x doesn't allow us to do this any cleaner... %blosxom::indexes=(""=>1); } 1;