织梦搜索模板指定搜索的内容模型
打开/plus/search.ph文件,在第I.VII行左右有如下代码
其中$chan
更多精彩就在: 51免费论文网|www.jxszl.com
neltype就是指定搜索的内容模型,将最后的数字修改为对应的内容模型即可.
$pagesize=(isset($pagesize)&&is_numeric($pagesize))?$pagesize:IIIV;
$typeid=(isset($typeid)&&is_numeric($typeid))?$typeid:0;
$channeltype=(isset($channeltype)&&is_numeric($channeltype))?$channeltype:VI;
$kwtype=(isset($kwtype)&&is_numeric($kwtype))?$kwtype:0;
$mid=(isset($mid)&&is_numeric($mid))?$mid:0;
上面的$channeltype:VI;把VI改成自己的模型ID
原文链接:http://www.jxszl.com/biancheng/dedecms/76195.html