[pmwiki-users] RSS feed

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 24 09:20:00 CST 2006

On Fri, Feb 24, 2006 at 03:58:26PM +0100, Roman wrote:
> > Note that you don't need to change the feeds.php script itself --
> > better might be to do (in local/config.php):
> >
> >    $FeedFmt['rss']['item']['author'] =
> >      "<author><name>{\$LastModifiedBy}</name></author>";
> I have this line in my config and it works fine:
> $FeedFmt['rss']['item']['author'] = '$LastModifiedBy';
> Isn't <author><name> redundant?

Yes, in reading the RSS 2.0 spec it appears that the <name>
element isn't needed (and could in fact be wrong).  So,

   $FeedFmt['rss']['item']['author'] = '$LastModifiedBy';

works just fine.  I think I will add this particular example
into the comments of the feeds.php script.

> > The relevant variable is {$LastModifiedSummary} -- what RSS
> > element do you want it to appear under?
> I use "description" element ($FeedFmt['rss']['item']['description']).

This is fine.  PmWiki doesn't default to this because some would
argue that the RSS 2.0 <description> element is really meant to 
be a summary of the entire page (e.g., from the page's 
(:description ...:) directive) and not simply a summary of the
latest change.

Here we can see RSS's design criteria showing a bit -- it was really
intended to provide information about a sequence of articles,
as opposed to changes within a single article.


More information about the pmwiki-users mailing list