首页 > 网站 > 建站经验 > 正文

织梦DEDECMS指定搜索某些栏目

2024-04-25 20:51:21
字体:
来源:转载
供稿:网友
 打开文件/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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表