帮助中心

在线升级后搜索结果404,怎么办?

发布日期:2013-12-17 发布人:

爱站cmsV1.1的用户直接进行在线升级,升级为V2.0后,可能会出现网站搜索结果页404的错误,这种问题是由于搜索结果页模板问题导致的,2.0升级功能中对网站站内搜索进行了全面的优化,需要重新制作搜索结果页模板,请查看以下示例并进行相应调整:


例子:
{$searchList['sign']['mid']} 模型id
{$searchList['sign']['total']}        结果数
{$searchList['sign']['keyword']}       关键词
{$searchList['sign']['pages']}         上一页
{$searchList['sign']['page_last']}     尾页
{$searchList['sign']['page_down']}     下一页
{$searchList['sign']['search_type']}   搜索类型
 
搜索列表页:

 
 
 
 
 
分页:
 
 
 <div class="page">共<cite>{$searchList['sign']['total']}</cite>条记录,分<cite>{$searchList['sign']['page_last']}</cite>页显示,当前是第<cite>{$searchList['sign']['page']}</cite>页
  <a href=HOST_NAME."/search/Search/index?p=1&mid={$searchList['sign']['mid']}&keywords={$searchList['sign']['keyword']}&search_type={$searchList['sign']['search_type']}">首页</a>  
  <a href=HOST_NAME."/search/Search/index?p={$searchList['sign']['page_top']}&mid={$searchList['sign']['mid']}&keywords={$searchList['sign']['keyword']}&search_type={$searchList['sign']['search_type']}" class="prve">上一页</a>{$searchList['sign']['pages']}
<a href=HOST_NAME."/search/Search/index?p={$searchList['sign']['page_down']}&mid={$searchList['sign']['mid']}&keywords={$searchList['sign']['keyword']}&search_type={$searchList['sign']['search_type']}" class="next">下一页</a>
  <a href=HOST_NAME."/search/Search/index?p={$searchList['sign']['page_last']}&mid={$searchList['sign']['mid']}&keywords={$searchList['sign']['keyword']}&search_type={$searchList['sign']['search_type']}" class="next">末页</a></div>
      </div>