Thursday 22 February 2007 8:51:53 am
Hi,
I have three differents files included direcctly in the pagelayout. I use $module_result to have the node_id for example:
{if $module_result.path.1.node_id|eq(ezini( 'truk', 'bidule', 'file.ini' ))}
{include uri='design:menu.tpl'}
{/if}
This code works fine, everything is ok when I see the debug output etc... However I use to tail -f var/log/error.log
to see the error in live. In this file I have a lot of errors :
[ Feb 22 2007 16:38:48 ] [192.168.16.28] eZTemplate:
No such attribute for array(6): node_id
Choose one of following: content, path, is_default_navigation_part,
ui_context, ui_component, uri
[ Feb 22 2007 16:38:49 ] [192.168.16.28] eZTemplate @ design/bidule/templates/menu.tpl:1[0]:
But everything works... but this line appears always in the error.log file.
I don't know if it is the good behavior of eZ but it's strange... To correct the creation of this lines I have add a test on top of my file :
{if is_set($module_result.path.1.node_id)}
{if $module_result.path.1.node_id|eq(ezini( 'truk', 'bidule', 'file.ini' ))}
{include uri='design:menu.tpl'}
{/if}
{/if}
I must say you that the $module_result.path.1.node_id is always set in my subtree! I would like have an explanation on this thing.. with eZ : 3.9.0 Thanks [edit]My template settings section :
[TemplateSettings]
TemplateCache=disabled
TemplateCompile=disabled
TemplateOptimization=disabled
--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)
|