易优eyoucms三级导航菜单模板
{eyou:channel type='top' row='10' id='field1' currentstyle='active'}
<!-- 第一级栏目循环开始 -->
<div class="first">
<a href="{$field1.typeurl}" title="{$field1.typename}" class="{$field1.currentstyle}">
{$field1.typename}
{eyou:notempty name='$field1.children'}
<!-- 有子栏目时才显示这里的html代码,比如:箭头、图标等 -->
{/eyou:notempty}
</a>
{eyou:notempty name='$field1.children'}
<!-- 判断是否有子栏目(第二级栏目)start -->
<div class="second">
{eyou:channel name='$field1.children' id='field2' row='10'}
<!-- 第二级栏目循环开始 -->
<div class="">
<a href="{$field2.typeurl}">{$field2.typename}</a>
{eyou:notempty name='$field2.children'}
<!-- 判断是否有子栏目(第三级栏目)start -->
<div class="third">
{eyou:channel name='$field2.children' id='field3' row='10'}
<!-- 第三级栏目循环开始 -->
<a href="{$field3.typeurl}" >{$field3.typename}</a>
{/eyou:channel}
<!-- 第三级栏目循环结束 -->
</div>
{/eyou:notempty}
<!-- 判断是否有子栏目(第三级栏目)end -->
</div>
{/eyou:channel}
<!-- 第二级栏目循环结束 -->
</div>
{/eyou:notempty}
<!-- 判断是否有子栏目(第二级栏目)end -->
</div>
<!-- 第一级栏目循环结束 -->
{/eyou:channel}