Show Sub menu only on right column

Author Message

kamal kannan

Wednesday 20 October 2010 1:14:51 pm

Hi friends,

I need your help.I searched this forum and got some answers but that does not complete my target.

Firstly i have ezpublish 4.3 with ezflow installed with double-top menu.
I have 10 folders with 5 or 6 sub folders in each.
I have directly pasted the double-top menu code inside the pagelayout and deleted second level menu there so it shows the first menu items only and not sub menu or sub folder names.

Now i want to show those sub folders on my right column.I have a global layout with some blocks.
See this picture for details http://wordsville.com/ask/ask.gif

So when you click on folder on the top menu the relevant sub folders must show on the right column.

So far i made some copy-paste work with the help of this forum but i could not made it.
I have used the following for references

http://share.ez.no/forums/setup-design/new_menu/(from)/ez.no/

http://doc.ez.no/eZ-Publish/Technical-manual/3.6/Reference/Template-operators/Miscellaneous/treemenu

When i use this code directly inside pagelayout.tpl it show exactly what i want.But when i use it in globalzonelayout.tpl it does not shows.The code is

"

<ul>{def $mainMenu=treemenu( $module_result.path, $module_result.node_id, array('folder','info_page'), 1, 6 )} {foreach $mainMenu as $menu} <li class="level_{$menu.level}"> {if $menu.is_selected} <div class="selected"> <a href={$menu.url_alias|ezurl}>{$menu.text}</a> </div> {else} <a href={$menu.url_alias|ezurl}>{$menu.text}</a> {/if} </li>{/foreach}</ul><ul>{def $mainMenu=treemenu( $module_result.path, $module_result.node_id, array('folder','info_page'), 1, 6 )} {foreach $mainMenu as $menu} <li class="level_{$menu.level}"> {if $menu.is_selected} <div class="selected"> <a href={$menu.url_alias|ezurl}>{$menu.text}</a> </div> {else} <a href={$menu.url_alias|ezurl}>{$menu.text}</a> {/if} </li>{/foreach}</ul>

"

If is use the fetch function then the menu shows on globalzone but it shows the complete structure what i do not want.

So anyone help me?
Thanks a lot.

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 30 2025 00:15:09
Script start
Timing: Jan 30 2025 00:15:09
Module start 'layout'
Timing: Jan 30 2025 00:15:09
Module start 'content'
Timing: Jan 30 2025 00:15:09
Module end 'content'
Timing: Jan 30 2025 00:15:09
Script end

Main resources:

Total runtime0.0189 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 588.2422151.2109
Module start 'layout' 0.00810.0033 739.453136.6563
Module start 'content' 0.01140.0057 776.109490.3750
Module end 'content' 0.01720.0017 866.484429.9766
Script end 0.0189  896.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.5248140.0002
Check MTime0.00126.4047140.0001
Mysql Total
Database connection0.00178.818810.0017
Mysqli_queries0.003719.399630.0012
Looping result0.00000.111010.0000
Template Total0.00147.210.0014
Template load0.00105.518110.0010
Template processing0.00031.651010.0003
Override
Cache load0.00063.014410.0006
General
dbfile0.00136.938380.0002
String conversion0.00000.041640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs