Forums / Setup & design / Show Sub menu only on right column

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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.