if判斷二級(jí)導(dǎo)航顯示問(wèn)題
<yang:catlist typeid="141" limit="1" orderby="sort ASC">
<if condition = "($cid eq $catlist['id'])or($cid eq 141)or($cid eq $catlist['child'])">
<dl>
<dt><a href="{$catlist.url}#{$catlist.ename}" data-toggle="collapse" > {$catlist.name}<span class="pull-right glyphicon glyphicon-chevron-down"></span></a></dt>
<div id="{$catlist.ename}" class="collapseb">
<volist name='catlist["child"]' id='v'>
<dd ><span><a href="{$v|get_url}#cp" >{$v.name}</a> </span></dd>
</volist>
</div>
</dl>
</if>
</yang:catlist>
根據(jù)$catlist['id']我可以一級(jí)導(dǎo)航的ID,二級(jí)導(dǎo)航的ID我應(yīng)該怎么寫(xiě),我隨便用的這個(gè)$catlist['child'],我知道是錯(cuò)的