How to create a user specific RSS feed
- Get latest version of Views node feed, for now its just a dev version a bit hidden here http://drupal.org/node/271269/release, views_node_feed-6.x-1.x-dev
- Install Views Node Feed at admin/build/modules
- If you have an WYSIWYG editor, exclude it from:
admin/settings/views_node_feed/add.edit-wrapper
admin/settings/views_node_feed/add.edit-node
admin/settings/views_node_feed/edit* - Go to admin/settings/views_node_feed and create a node
feed to specify the format your feed will be in.Wrapper Template:
<rss version="2.0">
<channel>
<title>My Site</title>
<link>http://www.mysite.net</link>
<description><?php print $pressroom_desc;?></description>
<webMaster>me@mysite.net (My Site)</webMaster>
***VIEWS_NODE_FEED_ITEMS***
</channel>
</rss>Node template:
<?php
global $base_url;
if(!empty($node->footer)){
$footer = "<p>".$node->footer;
}
?>
<item>
<title><?php print(htmlspecialchars($node->title));?></title>
<link><?php print $base_url."/".$node->path;?></link>
<description>
<?php print(htmlspecialchars ($node->body .$footer));?></description>
<pubDate><?php print(date("D, j M Y G:i:s", $node->created));?> CST</pubDate>
</item> - Create a view that you will use to populate your feed with nodes. You can sort and filter these nodes just as you regularly would with views. The view should provide a page.
Knowledge keywords: