D5/Views 1, CCK, and RSS question

Events happening in the community are now at Drupal community events on www.drupal.org.
clintthayer's picture

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

xjm's picture

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

xjm's picture

Iif nothing else, you could create a custom module implementing hook_nodeapi() to add your CCK field values. Something like:

<?php
function 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

clintthayer's picture

Roger - thanks for the thoughts. In all this, makes one really love D6 and Views2...

Wisconsin

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: