muban大师 发表于 2021-2-9 11:00:14

织梦通过ID搜索出对应文章结果的实现办法

应用场景:我们有知道一个模板的演示站地址,如:https://www.adminbuy.cn/plus/demo.php?aid=7768我们如何在织梦58里找到相应的模板呢。
       
        很简单,我们可以通过aid=8420 直接搜索该id, 索引到相应文档内容
       
        实现的办法:
       
        打开include>arc.searchview.class.php
       
        找到278行,$ks = explode(' ',$this->Keywords); 在其上面加入以下代码:
       
        //new add
        if(is_numeric($this->Keywords)){
        return " arc.id={$this->Keywords}";
        }
       
        即可
页: [1]
查看完整版本: 织梦通过ID搜索出对应文章结果的实现办法