Problem with template.tpl

Author Message

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>

Alex Jones

Thursday 30 October 2003 2:38:19 pm

Make sure you have added read permissions for the new class in the admin section: Users > Roles > Edit

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Arash Molavi

Thursday 30 October 2003 2:50:31 pm

Tnx, but that was the first thing i did:/

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>

Arash Molavi

Friday 31 October 2003 9:23:22 am

Yeah, I know. But I acctually think It's the cache-blocks spooking in some way, but I dont understand anything about those:|

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.