文章页获得顶级栏目名称列表以及其内部文章数量

  

<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>

posted on 2014-07-15 16:33  探灵档案  阅读(251)  评论(0编辑  收藏  举报

导航