[pmwiki-users] Create RSS description using (:include:) ?

Steve Glover steve at fell-services.net
Tue Jan 15 06:10:31 CST 2008


On Tue, 2008-01-15 at 13:00 +0100, Roman wrote:
> Here is a snippet from my config:
> 
> $FeedFmt['rss']['item']['description'] = 'FeedText';
> 
> function FeedText($pagename, &$page, $tag) {
>   $p = ReadPage($pagename);
>   $content = MarkupToHTML($pagename, $p['text']); 
>   return "<$tag><![CDATA[$content]]></$tag>";
> } 

I'm trying to get rid of PmWiki markup appearing in the RSS feed from my
News.RecentChanges page, but when I use the above (I assume it's meant
to be in my local/config.php), I just get empty <description> tags in
the feed - which at least eliminates users' complaints about the "odd"
mark-up, but doesn't quite do what I'd like it to.

Has anyone else had this problem, please?

Thanks

Steve


-- 
Steve Glover at                          email: steve at fell-services.net
SDSS, EDINA, University of Edinburgh,          tel: +44 (0)131-650 2908
Causewayside House, 160 Causewayside,          fax: +44 (0)131-650 3308
Edinburgh EH9 1PR                          mobile: +44 (0) 7961 446 902




More information about the pmwiki-users mailing list