{category module=product pid=$c1.id return=c2}
<li class="sort_part_item_menu_item" onClick="[removed].href='{$c2.url}'">{$c2.name} ({intval(dr_share_cat_value($c2.id, 'total'))} {dr_cat_value("product", $c2.id, "total")}{dr_share_cat_value($c2.id, "total")}{$c2.id})</li>
{/category}
我想輸出每個(gè)欄目存在的信息數(shù),這個(gè)欄目里面是有一條信息的,試過多種方式輸出的還是0
官方提醒:使用category欄目循環(huán)標(biāo)簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
{$c2.total}開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{intval(dr_share_cat_value($c2.id, 'total'))}共享欄目可以用這個(gè)方法
還是0
回復(fù)@曹海峰 用過的
看后臺(tái)是不是0,如果后臺(tái)是0,那么讀出來也就是0
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@萬俟肸

({intval(dr_share_cat_value($c2.id, 'total'))} {dr_cat_value("product", $c2.id, "total")}{dr_share_cat_value($c2.id, "total")} {$c2.total} {$c2.id})方法都對(duì),就是沒有更新緩存,建議手冊(cè)中增加一下