{pc:content action="category" catid="0" num="6" siteid="$siteid" order="listorder ASC"}
<ul>
<li {if !$catid} class="active" {/if}><a href=‘index.html‘><span>首页</span></a></li>
{loop $data $r}
<li>|</li>
<li {if $catid==$r[catid] || $top_parentid==$r[catid]} class=‘active‘{/if} ><a href=‘{$r[url]}‘><span>{$r[catname]}</span></a></li>
{/loop}
<div class="clear"></div>
</ul>
{/pc}
原文:http://my.oschina.net/guomingliang/blog/293684