织梦模板DEDE通过ID搜索出对应文章结果的实现教程
来源:网络分享
编辑:引流技巧
时间:2026-05-10

应用场景:我们有知道一个模板的演示站地址,如:https://www.dedesos.com/plus/demo_mb.php?aid=8420?1 我们如何在织梦帮里找到相应的模板呢。
很简单,我们可以通过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}";
}
即可
很简单,我们可以通过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}";
}
即可


相关文章:
相关推荐:
栏目分类

最新文章

热门文章


