Display more node

Author Message

Anekdoten <<>>

Tuesday 26 July 2005 1:38:50 am

Hi,

This code:

{*?template charset=utf-8?*}
<h1>{$node.name}</h1>

<h2>Obiettivi</h2>
{attribute_view_gui attribute=$node.object.data_map.obiettivi}

<h2>Luogo</h2>
{attribute_view_gui attribute=$node.object.data_map.luogo}

<h2>Data</h2>
{attribute_view_gui attribute=$node.object.data_map.data}

<h2>Partecipanti</h2>
{attribute_view_gui attribute=$node.object.data_map.partecipanti}

<h2>Promotori</h2>
{attribute_view_gui attribute=$node.object.data_map.promotori}

<h2>Partner</h2>
{attribute_view_gui attribute=$node.object.data_map.partner}

{let page_limit=20
    children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset))    list_count=fetch('content','list_count',hash(parent_node_id,$node.node_id))}

{section name=Child loop=$children sequence=array(bglight,bgdark)}
{node_view_gui view=line content_node=$Child:item}
{/section}
{include name=navigator
    uri='design:navigator/google.tpl'
    page_uri=concat('/content/view','/full/',$node.node_id)
    item_count=$list_count
    view_parameters=$view_parameters
    item_limit=$page_limit}

don't work, why???
Help me please ... Thank you

Łukasz Serwatka

Tuesday 26 July 2005 2:31:00 am

What exacly not working? Turn on debug output in site.ini.append.php file to see what errors do you have.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Anekdoten <<>>

Tuesday 26 July 2005 3:09:14 am

Lukasz thanks for the answer, the system returs the following errors ->

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['obiettivi'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['luogo'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['data'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['partecipanti'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['promotori'] does not exist, cannot fetch the value.

Error: eZTemplate:eZTemplateCompiler Jul 26 2005 11:59:21

PHP variable $attributeAccess['partner'] does not exist, cannot fetch the value.

he does not find the data ... but I do not understand what is due.

Łukasz Serwatka

Tuesday 26 July 2005 7:41:02 am

You have this errors because you are tring display class attributes which don`t exists for that object. Make sure that attribute name "obiettivi" is the same in tpl code and in class.

Or this might be the cache problem, you can try to clear all cache, remove all files from var/cache and var/(sitename)/cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Anekdoten <<>>

Tuesday 26 July 2005 9:55:44 am

Certain Luke, I have tried to clear all cache and checked the attributes of class with those writings in template, but nothing ... I do not know how to do.

Would you have any idea?
Many thanks

Łukasz Serwatka

Tuesday 26 July 2005 10:42:44 am

Then probadly wrong template is loaded, turn on "Template debug" and check which template is loaded, when you accessing this object.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Anekdoten <<>>

Tuesday 26 July 2005 11:25:24 am

Nothing, the template is loaded correctly ->

Notice: Jul 26 2005 20:15:30 eZTemplate: Loading template "iniziative.tpl" with resource "design"

Anekdoten <<>>

Tuesday 26 July 2005 11:47:14 am

{default pollNodeID = 132}
{let slogan=fetch(content,node,hash(node_id,$pollNodeID))} {attribute_view_gui attribute=$slogan.object.data_map.obiettivi} {/let}
{/default}

specifying the id of knot works, but I want the list of content, and that way I have problems ...

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