{assign var = foreach_name value = "menu`$level`"} {foreach from = $menu item = "menuItem" name = $foreach_name}
  • {if empty($menuItem.sub)} {$menuItem.menuTitle} {else} {$menuItem.menuTitle} {/if}
  • {/foreach}