dedecms channelartlist正确输出二级导航的方法

{dede:channelartlist typeid='top'}
{dede:field name=typeid runphp="yes"}
global $dsql;
$sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
$row = $dsql->GetOne($sql);
@me=is_array($row)?'<li class="am-parent">':'<li>';
{/dede:field}
<a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a>
{dede:channel type='son' row=1}<dl>{/dede:channel}
{dede:channel type='son' reid=typeid}
<dd><a href="[field:typelink/]">[field:typename/]</a></dd>
{/dede:channel}
{dede:channel type='son' row=1}</dl>{/dede:channel}
</li>
{/dede:channelartlist}

发表评论


昵称

沙发空缺中,还不快抢~