{category module=share pid=0 num=3}
<dl class="item">
<dt class=''><a class="aLink" href="{$t.url}" title="{$t.name}">{$t.name}</dt>
{if $t.child}
{category module=share pid=$t.id return=t2 num=6}
<dd><a href= "{$t2.url}" title="{$t2.name}">{$t2.name}</a></dd>
{/category}
{/if}
</dl>
{/category}二級欄目控制數(shù)量num=6不生效。官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
{category module=share pid=$t.id num=6 return=t2}return只能放在結(jié)尾
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!