I try Content Templates to include cck field in the rss feed.
As you see I use the variable $node->teaser which include cck filed

$node->teaser
    <div class="field field-type-image field-field-startup-logo"> <div class="field-items"> <div class="field-item odd"> <a href="/startup/noobgr" class="imagecache imagecache-scale-200x imagecache-linked imagecache-scale-200x_linked"><img src="http://greekstartups.com/sites/default/files/imagecache/scale-200x/Picture 1_1.png" alt="" title="" width="200" height="84" /></a> </div> </div> </div> <div class="field field-type-link field-field-startup-link"> <div class="field-items"> <div class="field-item odd"> <a href="http://www.noob.gr" target="_blank" rel="nofollow">http://www.noob.gr</a> </div> </div> </div> <p>Noob.gr is a project that aims to help amateur -and not so amateur- users to get all the help they need by step by step tutorials about almost any kind of program. In addition to this, there is a forum where every user can ask for help the other noob.gr members and staff.</p> 

but the output of rss.xml at item > description
doesn't exist the cck field !!!

<item>
 <title>noob.gr</title>
 <link>http://greekstartups.com/startup/noobgr</link>
 <description>
   Noob.gr is a project that aims to help amateur -and not so amateur- users to get all the help they need by step by step tutorials about almost any kind of program. In addition to this, there is a forum where every user can ask for help the other noob.gr members and staff.
</description>
 <comments>http://greekstartups.com/startup/noobgr#comments</comments>
 <category domain="http://greekstartups.com/tag/help">help</category>
 <category domain="http://greekstartups.com/tag/tutorials">tutorials</category>
 <pubDate>Sun, 26 Oct 2008 22:23:32 +0000</pubDate>
 <dc:creator>dkalo</dc:creator>
 <guid isPermaLink="false">12 at http://greekstartups.com</guid>
</item>

maybe isn't content template issue,
but could you help and suggest me,
what happen and how can i serve cck field in the rss.xml ?

Comments

WorldFallz’s picture

Title: RSS Template doesn't incloud cck fields » RSS Template doesn't output cck fields
Category: support » bug

I'm also having this problem. I'm used to doing this with the d5 version and it works perfectly. With the current d6 contemplate (both dev and released versions) the cck fields simply don't output when included in the rss template. The identical code in teaser and body templates works fine. Also, non-cck field variables from the variable listbox (ie node->nid, node->title, etc) work fine. Only the cck fields are simply missing and only from the rss template.

This means now that there is no way to include cck fields in rss feeds with D6-- views doesn't handle it (the 'fields' settings disable for 'feed' display types) and the cck display field options for rss also don't work. Not sure if there's a systemic problem or just coincidental bugs.

I took a look at the code, but I didn't see anything obvious.

aleksey.tk’s picture

Subscribing, have the same issue.

eMPee584’s picture

Status: Active » Postponed (maintainer needs more info)

Maybe this was fixed by the committal of fixes from #345061: Coder scrub patch for contemplate.module, would you please try the dev version once a new tarball is produced? And backup your existing folder in case something is wrong with the changes..!

drewish’s picture

raspberryman’s picture

Just as an experiment, try using ['safe'] rather than ['view'] for your CCK output (ie, $node->myfield[0]['safe']).

Part of the problem might relate to the default node feeds not executing nodeapi(alter).

TripleEmcoder’s picture

Using ['safe'] instead of ['view'] solved the problem for me.

aleksey.tk’s picture

Fixed for me after latest release. Thanks!

perandre’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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