| Friday 29 December 2006 12:40:02 am 
                                                                
                                                                 <b>Question</b> How would one test for existence of a template variable, or template object item ($module_result.node_id) without triggering template error, warning or notice when the 'node_id' does not exist? I am tuning all my custom templates for performance. I am finding errors of this nature are accumulating in my custom templates. I have not yet seen how to avoid this problem. <b>Example - Error</b> Error: eZTemplate @ extension/example_com/design/example_com/templates/page_head.tpl:30[7]  	Dec 29 2006 03:10:56
No such attribute for array(7): node_id
Choose one of following: content, is_default_navigation_part, navigation_part,
                         ui_context, ui_component, path, uri
 <b>Example - Template</b>file, 'extension/example_com/design/example_com/templates/page_head.tpl'
 <title>{if $module_result.node_id|eq(2)}{$site.title|wash}: {$site.description|wash} : Home{else}{$site_title}{/if}</title>
 <b>Example - Url/Uri</b> http://example.com/shop/checkout
 <i>/dev/null</i> eZpedia community documentation project: http://ezpedia.org
                                                                 |