{m:nav field="catid,catname,arrchildid,pc ,type" where="parentid=0" limit="20"} {loop $data $v} <li> <a{if isset($catid) && $v['catid']==$catid} class="current" {/if} href="{$v[pc ]}" {if $v['type']==2} target="_blank" {/if}>{$v[catname]}</a> {if $v['arrchildid']!=$v['catid']} {php $r = get_childcat($v['catid']);} <ul class="sub_nav"> {loop $r $v} <li><a href="{$v[pc ]}">{$v[catname]}</a></li> {/loop} </ul> {/if} </li> {/loop}
这是2级调用,3级如何调用?