eyoucms判断栏目下是否有子栏目,代码如下:
<ul class="m_navul" data-in="fadeInDown" data-out="fadeOutUp"> <li class="active"> <a href="/">首页<span>HOME</span><i class="fa fa-angle-right"></i></a> </li> {eyou:channel row='6' type='top' currentstyle="dropdown"} <li class="{$field.currentstyle}"> {eyou:notempty name="$field.children"} <a href="javascript:void(0)"> {$field.typename} <span> {$field.englist_name} </span> <i class="fa fa-angle-right"> </i> </a> {eyou:else /} <a href="{$field.typeurl}"> {$field.typename} <span> {$field.englist_name} </span> <i class="fa fa-angle-right"> </i> </a> {/eyou:notempty} {eyou:notempty name="$field.children"} <div class="dropdown_menu"> {eyou:channel name="$field.children" row="5" id="field2"} <a href="{$field2.typeurl}"> {$field2.typename} <span> {$field2.englist_name} </span> </a> {/eyou:channel} </div> {/eyou:notempty} </li> {/eyou:channel} </ul>