聯(lián)系官方銷售客服
1835022288
028-61286886
請(qǐng)問(wèn)大神,search頁(yè)面怎么篩選出評(píng)論為零的內(nèi)容模塊?
下面我是按照評(píng)論篩選的模塊,不止為零的怎么篩選
<a href="{Router::search_url($params, 'order', 'comments')}" class="{if $params.order=='comments'}on{/if}">等待回答</a>
</div>
<div class="q_cons">
<div class="box">
<ul class="list_a">
{module module=wenda order=$params.order page=1 urlrule=$urlrule num=10}
<li>
官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫(xiě)參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
comments>0
參考文檔:《重寫(xiě)搜索Search類》
回復(fù)迅??蚣軇?chuàng)始人 不太明白怎么寫(xiě)
回復(fù)迅??蚣軇?chuàng)始人 我需要篩選出評(píng)論為0的文章
comments=0 評(píng)論為0的文章
改search文件
<a href="{Router::search_url($params, 'order', 'comments=0')}" class="{if $params.order=='comments=0'}on{/if}">等待回答</a>
這樣寫(xiě)不對(duì)
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
<a href="{Router::search_url($params, 'order', 'comments=0')}" class="{if $params.order=='comments=0'}on{/if}">等待回答</a>
這樣寫(xiě)不對(duì)
用一樓的文檔啊
我們以Demo模塊為例,新建App/Demo/Models/Search.php