<ul id="Menu"> <li> <h3 class="head"><a href="#">Title 1</a></h3> <ul> <li><a href="index.php">Content 1 1</a></li> <li><a href="index.php">Content 1 2</a></li> <li><a href="index.php">Content 1 3</a></li> </ul> </li> <li> <h3 class="head"><a href="javascript:;">Title 2</a></h3> <ul> <li> <ul id="2Menu"> <li> <h4 class="head"><a href="#">Content xtra 2 1a</a></h4> <ul> <li><a href="index.php">Content 2 1 1</a></li> <li><a href="index.php">Content 2 1 2</a></li> <li><a href="index.php">Content 2 1 3</a></li> </ul> </li> <li> <h4 class="head"><a href="#">Content xtra 2 1b</a></h4> <ul> <li><a href="index.php">Content 2 2 1</a></li> <li><a href="index.php">Content 2 2 2</a></li> <li><a href="index.php">Content 2 2 3</a></li> </ul> </li> </ul> </li> </ul>
пробовал так
<div id="shopcat"> {section name=i loop=$categories} <h3><a href="{$categories[i].link}">{$categories[i].name}</a></h3> {if $categories[i].subcategories} <ul id="Menu"> {section name=j loop=$categories[i].subcategories} <li> {if $categories[i].level<3} <a href="{$categories[i].subcategories[j].link}" {if $categories[i].subcategories[j].selected}class="shopcats_selected"{/if}>{$categories[i].subcategories[j].name}</a> {else} <ul id="2Menu"> <li> <h4><a href="{$categories[i].subcategories[j].link}">{$categories[i].name}</a></h4> <ul> <li> <a href="{$categories[i].subcategories[j].link}" {if $categories[i].subcategories[j].selected}class="shopcats_selected"{/if}>{$categories[i].subcategories[j].name}</a> </li> </ul> {/if} </li> {/section} </ul> {/if} {/section} </div>
но он не выводит, подкатегорию 2ур.