<h3>分类目录</h3>
<ul>
{dede:channel type=‘top‘ row=‘8‘ currentstyle="<li><a href=‘~typelink~‘ class=‘thisclass‘>~typename~</a> </li>"}
<li class="cat-item cat-item-25"><a href="[field:typeurl/]" title="[field:typename/]">[field:typename/]</a> ([field:id runphp=‘yes‘]global $dsql;$sql=‘SELECT count(id) as total FROM #@__arctiny where typeid=‘.@me;$rs = $dsql->GetOne($sql);@me=$rs[‘total‘];[/field:id]) </li>
{/dede:channel}
</ul>
文章页获得顶级栏目名称列表以及其内部文章数量,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/tanlingdangan/p/3845093.html