[pmwiki-users] Read RSS feeds

Patrick R. Michaud pmichaud at pobox.com
Tue Jan 24 07:36:36 CST 2006


On Tue, Jan 24, 2006 at 09:39:16AM +0100, Jean DEMARTINI wrote:
> H. Fox a ?crit :
> Presently, following a suggestion found in the cookbook, I use an ugly 
> method which consists in modifying the title of items so that the 
> updating date is included by patching the file feeds.php with:
> 
> SDVA($FeedFmt['rss']['item'], array(
>   '_start' => "<item>\n",
>   '_end' => "</item>\n",
>   'title' => '{$Group} / {$Title} @ $ItemISOTime',  /* the modification 
> is here */PS
>   'link' => '{$PageUrl}',
>   'description' => '$ItemDesc',
>   'dc:contributor' => '{$LastModifiedBy}',
>   'dc:date' => '$ItemISOTime',
>   'enclosure' => 'RSSEnclosure'));
> 
> I'll try to do that cleanly (in config.php for instance) before posting 
> a comment in the cookbook.

You can do this in config.php with one line:

  $FeedFmt['rss']['item']['title'] = '{$Group} / {$Title} @ $ItemISOTime';

> PS: it seems that feeds reader tools take only titles in account and not 
> an updating date.

It depends on the tool... some use the dates, some use the title
of the feed, and some use the titles of the items.

Pm




More information about the pmwiki-users mailing list