Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2008 at 15:13 UTC
Updated:
14 May 2009 at 09:10 UTC
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
Comment #1
WorldFallz commentedI'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.
Comment #2
aleksey.tk commentedSubscribing, have the same issue.
Comment #3
eMPee584 commentedMaybe 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..!
Comment #4
drewish commentedmarked #341644: Content template and RSS custom - Nothing is generated. as a duplicate
Comment #5
raspberryman commentedJust 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).
Comment #6
TripleEmcoder commentedUsing ['safe'] instead of ['view'] solved the problem for me.
Comment #7
aleksey.tk commentedFixed for me after latest release. Thanks!
Comment #8
perandre commented