Forums / Setup & design / eztreemenu problem at version 3.7.3

eztreemenu problem at version 3.7.3

Author Message

John Mina

Thursday 09 March 2006 9:02:11 am

Hello,
I am using the version of EZ 3.7.3, I faced very strange problem when trying to use the eztreemenu operator

the error says :
Fatal error: Undefined class name 'ezcontentobjecttreenode' in /home/site3/public_html/kernel/common/eztreemenuoperator.php on line 193

the code i used is as follows:

{def $mainMenu=treemenu( $module_result.path,
                                    $module_result.node_id,
                                    array('folder','info_page'), 0, 1 )}
 
{foreach $mainMenu as $menu}
    {if $menu.is_selected}
		{set $navigation_id = $menu.id}
    {/if}
{/foreach}
{undef}

All I want to do is to know the Id of the head of my tree.

The strange thig :
When the user is logged in , he can browse without having any problems or vieweing this error.
but when he is not logged in he gets the error only in the page, the Debug Output has only one error:
$module_result.node_id <--- says nothing called node_id and it suggests me other attributes. but i don't think it is true, simply cause it works

ANY ONE HAS AN Explenation.
Please help

John

John Mina

Friday 10 March 2006 12:55:21 pm

hello,
I moved the code into the Body tag of the pagelayout.tpl
And i used the follwoing Code instead of the one above.:

{let m=treemenu( $module_result.path,
                    $module_result.node_id,
                     array('folder'), 0, 1, "is_selected=TRUE" )}
      {foreach $m as $menu}
    {if $menu.is_selected}
		{set $navigation_id =$menu.id}
    {/if}
{/foreach}
{/let}

and still using version 3.7.3 :)
Good Luck every one

John Mina

Sunday 12 March 2006 2:13:01 am

I noticed it is not working back.

I don't know why ? i noticed also it has to have some kind of running /compiled code above it
I made a dummy tpl, that prints out nothing but includes some fetch / if / switch and closed it

and that actually worked :) just importing this dummy.tpl above the eztreemenu

IsN't ThAt Wiered ?