dede/织梦-搜索

摘要:在搜索框的地方对应修改 <form name="formsearch" action="{dede:global.cfg_cmsurl/}/plus/search.php"> <input name="q" type="text" clas

在搜索框的地方对应修改

<form name="formsearch" action="{dede:global.cfg_cmsurl/}/plus/search.php"> <input name="q" type="text" class="text" id="search-keyword" value="在这里搜索..." /> <button type="submit" class="btn">搜索</button>

     

</form>

在搜索页面添加

<div class="resultbar">搜索 <strong class="fc_03c">{dede:global name='keyword' function='RemoveXSS(@me)'/}</strong> 的结果 </div>

手机调用search

1.plus 新建:search_m.php

   修改:require_once(dirname(__FILE__)."/../include/common.inc.php");

require_once(DEDEINC."/arc.searchview.class.php");

require_once(dirname(__FILE__)."/../include/common.inc.php");

require_once(DEDEINC."/arc.searchview.class_m.php");

includ 下

arc.searchview.class_m.php

搜索:defined('DEDEMOB'

上边一行

$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search.htm";

修改成:$tempfile = "../templets/wap/search_m.htm";

对应的模板下放search_m.htm  就ok啦

下一篇:dede-手机站链接替换