Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2009 at 04:51 UTC
Updated:
27 Jan 2009 at 21:58 UTC
The attached patch allows CCK fields to appear properly in Views RSS feeds. Without it, they suffer from the same bug that core's RSS feeds do: only the initial $node->body and $node->teaser variables are spit out, and fields turn invisible.
| Comment | File | Size | Author |
|---|---|---|---|
| views-rss-fix.patch | 1.57 KB | eaton |
Comments
Comment #1
WorldFallz commentedJan 1st? And I thought I was bad drupaling 12/26, lol.
Anyway, patch applies (though there seems to be some svn cruft at the top) and seems to work correctly with a quick test on a simple 1 field feed. I'll try making some more complicated feeds when I get a chance. Using d6.8 & views 6.x-2.2.
I've been trying to figure this one out for a while-- this is awesome, thanks.
and Happy New Year ;-)
Comment #2
merlinofchaos commentedCommitted! Thanks!
Comment #4
drewish commentedi really think this was the wrong way to do this, it breaks compatibility with core's rss item building... the correct fix would be for CCK to implement hook_nodeapi($op='rss item') as in #118833: Fields doesn't appear in RSS feed.
update: marked #363795: drupal_render() is not being called for RSS feeds as a duplicate.
Comment #5
merlinofchaos commentedMore fun with RSS!
Comment #6
eaton commentedAfter discussion in IRC and clarification of the way that the NODE_BUILD_* modes operate, the problem really seems to be a core bug that needs dealing with... #365183: node_feed() silently discards $node->content has patches for D6 and D7...