[pmwiki-users] RSS feed with text and images?
Derek Lerner
lernaway at gmail.com
Fri Nov 16 15:15:53 CST 2007
As an update to my last question.
I am attempting to modify feeds.php & below is what I am currently
working with.
## RSS 2.0 settings for ?action=rss
SDVA($FeedFmt['rss']['feed'], array(
'_header' => 'Content-type: text/xml; charset="$Charset"',
'_start' => '<?xml version="1.0" encoding="$Charset"?'.'>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>'."\n",
'_end' => "</channel>\n</rss>\n",
'title' => '$WikiTitle | {$Group} / {$Title}',
'link' => '{$PageUrl}?action=rss',
'description' => '{$Group}.{$Title}',
'lastBuildDate' => '$FeedRSSTime'));
SDVA($FeedFmt['rss']['item'], array(
'_start' => "<item>\n",
'_end' => "</item>\n",
'title' => '{$Group} / {$Title}',
'link' => '{$PageUrl}',
'description' => '{$Description}',
'dc:contributor' => '{$LastModifiedBy}',
'pubDate' => '$ItemRSSTime',
'enclosure' => 'RSSEnclosure',
'guid' => '{$PageUrl}',
'content:encoded' => '<![CDATA['.$item->content.']]>'));
What would be the correct way to write...
'content:encoded' => '<![CDATA['.$item->content.']]>'));
to include a pages full content in a RSS feed?
Best,
Derek
More information about the pmwiki-users
mailing list