Template code: I can't see the problem!

Author Message

Shurbann Martes

Monday 29 December 2003 12:33:51 pm

Hello there,

There seems to be a problem inthis code, casue it's not generating anything (and it should ;) )

{default informe_node_id=97 }

{let children=fetch( content, list, hash( parent_node_id, $informe_node_id,sort_by, $node.sort_array,offset,1,limit, 2, class_filter_type, include, class_filter_array, array('informe')))}
{section name=Child loop=$children}
{node_view_gui view=embed content_node=$Child:item}
{/section}
{/let}
{/default}

class inform is readable by anonymous (by the way with administrator it doesn't show anything neither)

I made embed_image override:

[embed_informe]
Source=content/view/embed.tpl
MatchFile=embed_informe.tpl
Subdir=templates
Match[class]=17

Do you see the problem?

Regards,
Shurbann

Kai Duebbert

Sunday 04 January 2004 8:30:57 pm

I'm quite sure, your problem is:
class_filter_array, array('informe')

You should use the class number, not the name. (If it hasn't changed in the last releases.)

See http://www.ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/fetch_function_examples

Kai

Shurbann Martes

Monday 05 January 2004 5:45:48 am

Hi kai,

Thnx for your reply. I already found the solution. It hasosomething to do with the view=embed. I changed the view=embed to view=list and everything works fine noew.
I think it has someting to do with the content/embed.tpl file. I'm not sure.

Instead of numbers also name of classes can be use from version 3.2.4 and above.

-Shurbann

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