模板標(biāo)簽里面
大佬們好
我想在首頁調(diào)用每個欄目的發(fā)文量
我是這么寫的
總數(shù):{count action=module module=news}
{category module=share site=1 pid=0 num=50 cache=3600 return=t}
{$t.name}<span class="badge {$a[array_rand($a)]}">{$t.total}</span>
{/category}但我在三級目錄發(fā)文,刷新首頁后,“文章總數(shù)”會自動變。
但“欄目文章數(shù)”不會自動變,必須后臺更新緩存之后,才會變。
請高手幫我修改修改,使得“欄目文章數(shù)”也像“文章總數(shù)”一樣,在前臺刷新自動就會變。
謝謝
官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個參數(shù)后面都有用法解釋
{category module=share site=1 pid=0 num=50 cache=3600 return=t}
{$t.name}<span class="badge {$a[array_rand($a)]}">{count action=module catid=$t.id module=news}</span>
{/category}
標(biāo)簽?zāi)悴欢际菍懞昧藛?br/>