Arash Molavi
|
Thursday 30 October 2003 2:28:11 pm
I've made a new content class. The contentclass has the number 16, and contains identifiers like best_1, and best_1_text. (to make a toplist. The toplists is in node 70 and the toplist is supposed to be fetched by the main template (template.tpl). When i write thise lines in there, nothing is returned. What have i done wrong?
That toplist i supposed to be in the maintemplate.
<td class="menuitem">
{let lista=fetch('content','list',hash(parent_node_id,70,class_filter_type,"include",class_filter_array,array(16)))}
{section name=Ledamot loop=$lista}
{$Lista:item.best_1}
{$Lista:item.best_1_text}
{/section}{/let} </td>
|
Vivienne van Velzen
|
Friday 31 October 2003 12:12:09 am
Hi Arash, From what I can tell by your code, the namespace used for the items is wrong. Try this instead:
{section name=Ledamot loop=$lista}
{$:item.best_1}
{$:item.best_1_text}
{/section}
Hope this helps, Vivienne
|
Alex Jones
|
Friday 31 October 2003 7:11:49 am
Sorry Arash. I have been frustrated by the permissions a few times, so I automatically thought of that. Vivienne, good catch. :)
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|