Hey All...
First time posting a forum topic...hope I'm in the right place!

I'm creating a podcast using a custom CCK content type (not the audio module), and then generating my page using views. The view is using the RSS Feed Selector (with display all values chosen) to generate my podcast feed from the view. (it then goes to feedburner, and they do their magic)

Good so far.

However, I can't seem to get my custom CCK fields (including the link to the audio file) to display in my feed. It's only giving me my title and teaser. (other fields include link to audio file, podcast date, speaker's name, etc) I tried choosing "full text" from the RSS publishing admin page, but still no go.

Again, my feed for the view is displaying only title and teaser, none of my custom CCK fields. Any ideas on how to get the entire content of each node to show in the feed?

I'm hoping for a fairly easy solution, since I'm not a php guy....Any help would be appreciated.

Thanks!

Comments

zirafa’s picture

Hi,

Podcast feeds have extra fields that aren't really standard in regular RSS feeds. One of the things the audio module does is add extra fields to the feed, which is why it's pretty useful to use audio node types. Otherwise you'll probably have to hire or code a custom module to do what you want.

It would be nice to be able to specify directly what node fields get loaded into the podcast fields though.

dldege’s picture

Do you want the cck field values to show up in rss:description tag or are you wanting to add custom and/or itunes xml tags populated with the cck data to the feed?

In the first case it looks like views lets you decide if your rss description is the title, teaser, body, etc. You probably can set it to body (or whatever it is called - I don't have it in front of me) so that the nodes full body is used instead of the teaser. I believe that cck fields only show up in the full view and not the teaser by default. I believe you can also go into "Display Fields" for the cck fields of your type and force them to render in the teaser. One of these two methods would get them to show up in your feed as part of the rss:description tag.

For the latter case, custom xml nodes, you would need to create a module and implement the hook_nodeapi hook and the the rss item case in particular. http://api.drupal.org/api/HEAD/function/hook_nodeapi. This would allow you to look at the each node as the rss feed is being generated and create extra xml tags from the cck fields.

This bit of code from function theme_views_rss_feed($view, $nodes, $type) is where this all happens.

  $item_length = variable_get('feed_item_length', 'teaser');
  $namespaces = array('xmlns:dc="http://purl.org/dc/elements/1.1/"');

  // Except for the original being a while and this being a foreach, this is
  // completely cut & pasted from node.module.
  foreach ($nodes as $node) {
    // Load the specified node:
    $item = node_load($node->nid);
    $link = url("node/$node->nid", NULL, NULL, 1);

    if ($item_length != 'title') {
      $teaser = ($item_length == 'teaser') ? TRUE : FALSE;

      // Filter and prepare node teaser
      if (node_hook($item, 'view')) {
        node_invoke($item, 'view', $teaser, FALSE);
      }
      else {
        $item = node_prepare($item, $teaser);
      }

      // Allow modules to change $node->teaser before viewing.
      node_invoke_nodeapi($item, 'view', $teaser, FALSE);
    }

    // Allow modules to add additional item fields
    $extra = node_invoke_nodeapi($item, 'rss item');

dLd

Bensbury’s picture

Hi,

I understand your pain :p

A lot of people have been asking how to do this and there are no real answers.

Views2 RSS and CCK doesn't show custom fields in the RSS XML output.
People use the Contemplate Module to try and force the CCK fields but they don't return as XML elements (at least for many of us)

The best way to get this to happen is to go here and add your comments to get it a priority feature request.

http://drupal.org/node/316107

Hopefully the right people will see it and either at the feature or a clever chap will provide a patch.

This is for Drupal 6 by the way.
Apparently there has been a patch written for Drupal 5 that does this. you can read about that in the above link

kvantomme’s picture

I committed a module today that could help you, it doesn't have a release yet, as I'm waiting for some testing and community feedback. But you can check it out from CVS.

http://drupal.org/project/extra_RSS_fields

The story of the module is in my blog post at http://www.pronovix.com/blog/presenting-extra-rss-fields-module-outputs-...

-----------------
Check out our blog on http://www.pronovix.com/blog