Hey, we've recently upgraded from D5 to D6 and found an interesting issue with Views and our RSS feed. In D5, we implemented the "rss item" op within nodeapi. There, we changed the title of the node so that it displayed properly in the feed. In D6, this no longer works. We've tracked down the file, views_plugin_row_node_rss.inc, and the lines (90 - 98):
// Allow modules to modify the fully-built node.
node_invoke_nodeapi($node, 'alter', $teaser, FALSE);

$item = new stdClass();
$item->title = $node->title;
$item->link = url("node/$row->nid", array('absolute' => TRUE));

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

From our perspective, it seems that the title should be assigned to the item after the rss item operation is invoked. Is this something that could be changed? Or is there another work around?

Thanks

Comments

merlinofchaos’s picture

Status: Active » Fixed

Work around: Use the 'alter' op instead of 'rss item'? You should be able to examine $node->build_mode to see if it's an RSS item. In fact, this is probably more correct than using 'rss item' which is actually meant for adding additional items. So it's less of a workaround and more the Right Way To Do It, I think.

droberge’s picture

Thanks Earl!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.