加入收藏 | 设为首页 | 会员中心 | 我要投稿 大同站长网 (https://www.0352zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

织梦DEDECMS指定搜索哪些栏目

发布时间:2022-05-20 14:09:42 所属栏目:经验 来源:互联网
导读:打开文件/include/arc.searchview.class //搜索 $query = Select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule, act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath from `ym_archives` arc left join `ym_arc
         打开文件/include/arc.searchview.class
 
//搜索
        $query = "Select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,
        act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath
        from `ym_archives` arc left join `ym_arctype` act on arc.typeid=act.id
        where  act.id not in (4,5,,6....) and {$this->AddSql} $ordersql limit $limitstart,$row";
把sql语句换成我这两句,括号里面的是你不搜索栏目的id。

(编辑:大同站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!