Posted by clintthayer on September 7, 2010 at 4:02pm
Hey folks,
After working in D6/Views 2 for so long I assumed there would a semi easy way to get cck fields into a views rss feed for D5/Views 1. Not finding a quick solution after a healthy net search within drupal.org and a general net search.
Anyone have thoughts on the matter?
Much thanks for the time - Clint
Comments
Hi Clint, I have this feed
Hi Clint,
I have this feed working in D5/Views 1:
http://www.fammed.wisc.edu/our-department/media/*/feed
...at least, it's a views-generated RSS feed that feed includes one CCK field (the embedded youtube video). It just sort of works like it is; I remember spending a lot of time trying to customize the feed markup and giving up on it. None of the other field types "just work" like that... looks like emfield.module itself may be providing this functionality in
hook_nodeapi().To clarify
Iif nothing else, you could create a custom module implementing
hook_nodeapi()to add your CCK field values. Something like:<?phpfunction mymodule_nodeapi(blah blah blah) {
if ($node->type == 'mytype' && $op == 'rss item') {
$rss = array();
// Do stuff to add RSS feed components like in emfield.module
return $rss;
}
}
?>
Note: there may well be an easier way! Maybe ask on IRC?
Thanks
Roger - thanks for the thoughts. In all this, makes one really love D6 and Views2...