Changeset 490

Show
Ignore:
Timestamp:
09/18/04 22:17:28 (4 years ago)
Author:
kake
Message:

RSS feeds for contributors, locales and categories.

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r486 r490  
    234234        'CGI::Wiki::Plugin::GeoCache'     => 0, 
    235235        'CGI::Wiki::Plugin::Locator::UK'  => '0.09', 
    236         'CGI::Wiki::Plugin::RSS::ModWiki' => '0.05', # for fancy stuff 
     236        'CGI::Wiki::Plugin::RSS::ModWiki' => '0.06', # for fancy stuff 
    237237        'CGI::Wiki::Plugin::RSS::Reader'  => '1.3',  # earlier versions don't support RSS 2.0 
    238238        'Config::Tiny'                    => 0, 
  • trunk/Changes

    r484 r490  
    99        Recent Changes RSS fixed so "wiki:importance" is set correctly. 
    1010        New "ignore_minor_edits" option for Recent Changes RSS. 
     11        Added RSS feeds for contributors, locales and categories. 
    1112 
    12130.39    15 September 2004 
  • trunk/PREREQUISITES

    r486 r490  
    1212CGI::Wiki::Plugin::GeoCache 
    1313CGI::Wiki::Plugin::Locator::UK (version 0.09 or later) 
    14 CGI::Wiki::Plugin::RSS::ModWiki (version 0.05 or later) 
     14CGI::Wiki::Plugin::RSS::ModWiki (version 0.06 or later) 
    1515CGI::Wiki::Plugin::RSS::Reader (version 1.3 or later) 
    1616Config::Tiny 
  • trunk/lib/OpenGuides.pm

    r483 r490  
    140140        $tt_vars{index_type} = lc($type); 
    141141        $tt_vars{index_value} = $2; 
     142        $tt_vars{rss_link} = $config->{_}{script_name} . "?action=rss;" 
     143                           . lc($type) . "=" . lc(CGI->escape($2)); 
    142144    } 
    143145 
  • trunk/templates/node.tt

    r435 r490  
    5353</div> 
    5454[% END %] 
    55 <div id="rdf_link"><a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this 
    56 node</a></div> 
     55<div id="rdf_link"> 
     56  <a href="[% cgi_url %]?id=[% node_param %];format=rdf">RDF/XML for this 
     57  node</a> 
     58  [% IF rss_link %] 
     59    <a href="[% rss_link %]">RSS feed for this node</a> 
     60  [% END %] 
     61</div> 
    5762<div id="version"> 
    5863[% IF current %] 
  • trunk/wiki.cgi

    r488 r490  
    109109            my $ignore_minor_edits = $q->param("ignore_minor_edits") ? 1 : 0; 
    110110            my $username = $q->param("username") || ""; 
     111            my $category = $q->param("category") || ""; 
     112            my $locale   = $q->param("locale")   || ""; 
    111113            my %criteria = ( 
    112114                             items              => $items, 
     
    114116                             ignore_minor_edits => $ignore_minor_edits, 
    115117                           ); 
    116             if ( $username ) { 
    117                 $criteria{filter_on_metadata} = { 
    118                                                   username => $username, 
    119                                                 }; 
    120             } 
     118            my %filter; 
     119            $filter{username} = $username if $username; 
     120            $filter{category} = $category if $category; 
     121            $filter{locale}   = $locale   if $locale; 
     122            if ( scalar keys %filter ) { 
     123                $criteria{filter_on_metadata} = \%filter; 
     124            } 
    121125            emit_recent_changes_rss( %criteria ); 
    122126        } elsif ( $feed eq "chef_dan" ) {