打开 /include/arc.searchview.class.php 找到
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search.htm";
在它的下面加上
$tempfile = ($this->TypeID > 0) ? str_replace(".htm","{$this->TypeID}.htm",$tempfile) : $tempfile;
完成。这样修改后,有指定栏目的就按栏目id来调用搜索结果模板(search1.htm,search2.htm,search8.htm),没有指定栏目就是默认的search.htm
© 版权声明
文章版权归作者所有,未经允许请勿转载。