[pmwiki-users] Full text RSS feeds?

Roman romat2 at gmail.com
Tue Jun 26 16:19:21 CDT 2007


On 6/26/07, Paul Giacherio <paulgiacherio at gmail.com> wrote:
> Can anyone point me in the right direction on how to include the full text
> of a page, with markup digested, in an RSS feed? I'm looking to mimic blog
> functionality, where an entire post can be sent in the RSS feed.
> I see the undigested excerpt example on the Web Feeds page [
> http://www.pmwiki.org/wiki/PmWiki/WebFeeds ], and was
> wondering if a "digested excerpt" were possible.

Following quick copy from my config should give you the direction:

$FeedFmt['rss']['item']['description'] = 'FeedText';

function FeedText($pagename, &$page, $tag) {
  $p = ReadPage($pagename);
  $content = MarkupToHTML($pagename, $p['text']);
  return "<$tag><![CDATA[$content]]></$tag>";

Roman



More information about the pmwiki-users mailing list