标签:io ar sp on bs cti ef nbsp br
获取栏目名:{$CAT[catname]}或{$catname}
获取父栏目名:{$CATEGORYS[$CAT[parentid]][catname]}
获取同级栏目列表:
{pc:content action="category" catid="$parentid"}
{loop $data $r}
<li><a href="{$r[url]}">{$r[catname]}</a></li>
{/loop}
{/pc}
获取子级栏目列表:
{pc:content action="category" catid="$catid"}
{loop $data $r}
<li><a href="{$r[url]}">{$r[catname]}</a></li>
{/loop}
{/pc}
标签:io ar sp on bs cti ef nbsp br
原文地址:http://www.cnblogs.com/thinksasa/p/4155201.html