ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 解決中 / 官方已回 怎么在全站搜索的時候,屏蔽某一個欄目 2 0
迅睿CMS版本:3.2.19

請文,怎么在全站搜索的時候,屏蔽某一個欄目。比如說要屏蔽欄目為107的所有內容,包括發的文章。list代碼里面應該咋寫呀……

{list action=search module=$dirname id=$searchid total=$sototal catid=$catid order=$params.order page=1 pagesize=10 urlrule=$urlrule more=1}

這個是源代碼,


image.png

解決方案
  • 要重寫search類,別無他法

  • 有一個又傻又簡單的方法,就是在搜索結果中進行條件判斷:

    {list .....}
     {if $t.catid!=107}
    ....顯示搜索內容....
     {/if}
    {/list}

    但是,缺點就是顯示條數不符。比如系統提示搜索到10條結果,屏蔽欄目后實際只顯示了6條數據。