{assign var = foreach_name value = "menu`$level`"} {foreach from=$menu item="m" name = $foreach_name}