<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦优化之如何禁止dedecms搜索隐藏栏目内容

时间:2020-12-10

在用dedecms建站时,很多时候都要用到隐藏栏目,而dedecms自带的搜索功能,默认搜索全站栏目内容,而有时候隐藏栏目内容是不想被搜索到的,那么如何禁止dedecms隐藏栏目里的内容呢?
跟版网用
织梦仿站时,发现,只需要修改底层的sql语句即可,即
include/arc.searchview.class.php文件的585行:

$query = "SELECT arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,
            act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath
            FROM `{$this->AddTable}` arc LEFT JOIN `dede_arctype` act ON arc.typeid=act.id
            WHERE {$this->AddSql} $ordersql LIMIT $limitstart,$row";
    在条件where后,加上以下语句:
    and  arc.typeid<>X
    X为隐藏栏目id。
    dedecms 高级搜索中也含有隐藏栏目,如何删除,请查看 dedecms隐藏高级搜索中的隐藏栏目的方法一文 !
    以上为跟版网-专业织梦模板定制下载站在v5.7sp1测试通过,同时
在此提醒朋友们,在修改底层文件时,一定要做好备份!
0
首页
案例
关于
联系