Forums / Setup & design / Menu placed outside pagelayout.tpl

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

Menu placed outside pagelayout.tpl

Author Message

Salvatore Guarino

Thursday 01 September 2005 11:19:37 pm

I have to place this menu in a custom template, (i.e. my_product.tpl), but the variable '<i>$module_result</i>' in this namespace is unknown. There is another way? Can I use another variable?

<ul>
{def $mainMenu=treemenu( $module_result.path, $module_result.node_id, array('folder','folder_product','tire_chain'), 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>