Problem with tree menu

Author Message

Joshep Velez

Tuesday 14 June 2005 4:44:17 am

Hi, first of all, sorry for my English, I hope you understand me.

I did a tree menu with the code that somebody has posted several months ago:

{let folderlist=fetch('content', 'tree' ,hash('parent_node_id', 2,
'class_filter_type', include,
'class_filter_array', array(1)))}
<div align="center"> 

<table border="1" width="150" bgcolor="#f6f6f6" cellpadding="1" cellspacing="0" align="center">

{section name=menu loop=$folderlist}

{switch match=$menu:item.depth}

{case match=2} 
{section show=eq($menu:index, 0)} 
</td></tr>
{/section}
<tr>
<td>
&nbsp;<a href={$menu:item.url_alias|ezurl}>{$:item.name}</a>

{/case}

{case match=3} 
{section show=and($node.depth|ge(2),eq($menu:item.parent_node_id, $node.path_array.2))}

&nbsp;<a href={$menu:item.url_alias|ezurl}><br /> &nbsp;-- {$:item.name}</a>

{/section}
{/case}

{case match=4} 
{section show=and($node.depth|ge(3),eq($menu:item.parent_node_id, $node.path_array.3))}

&nbsp;<a href={$menu:item.url_alias|ezurl}><br /> &nbsp; &nbsp;--- {$:item.name}</a>

{/section}
{/case}


{/switch} 
{/section}
</td>
</tr>
</table>
</div>
{/let}

It works correctly with eZ Publish 3.5 but I had to change to the 3.6 version due to another problems. When I have restablished all, this code doesn&acute;t work well. You can see that at http://interclassica.um.es When I click for the first time, for example, at "Investigación", it works, but when I click another link and then I click another time at "Investigación", it doesn&acute;t work. What's the problem? I hope your help! Thanks!

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

eZ debug

Timing: Jan 18 2025 14:52:02
Script start
Timing: Jan 18 2025 14:52:02
Module start 'layout'
Timing: Jan 18 2025 14:52:02
Module start 'content'
Timing: Jan 18 2025 14:52:03
Module end 'content'
Timing: Jan 18 2025 14:52:03
Script end

Main resources:

Total runtime0.8333 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9063152.6250
Module start 'layout' 0.00620.0030 740.531339.4453
Module start 'content' 0.00920.8227 779.9766406.9922
Module end 'content' 0.83190.0013 1,186.96888.1719
Script end 0.8332  1,195.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3713160.0002
Check MTime0.00130.1511160.0001
Mysql Total
Database connection0.00110.130010.0011
Mysqli_queries0.798295.7953460.0174
Looping result0.00040.0432440.0000
Template Total0.798595.820.3993
Template load0.00190.232920.0010
Template processing0.796695.600820.3983
Template load and register function0.00010.015910.0001
states
state_id_array0.00110.136310.0011
state_identifier_array0.00200.239220.0010
Override
Cache load0.00160.186970.0002
Sytem overhead
Fetch class attribute can translate value0.00040.052910.0004
Fetch class attribute name0.00060.068610.0006
XML
Image XML parsing0.00010.013110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0756100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs