1、后臺(tái)-->核心-->頻道模型-->內(nèi)容模型管理 -->普通文章-->點(diǎn)擊后面那個(gè)放大鏡標(biāo)志(最重要一步)-->附件表可供自定義搜索的字段,這里的字段是程序依據(jù)字段類(lèi)型自動(dòng)選擇 生成的,將“文章內(nèi)容”前面那個(gè)打勾,此時(shí)將修改掉搜索字段,但是還沒(méi)有成功,還需要修改模板相應(yīng)的代碼。
2、將模板文件 head.htm 中的以下代碼:
<form action="{dede:field name='phpurl'/}/search.php" name="formsearch"> <div> <h4>搜索</h4> <input type="hidden" name="kwtype" value="0" /> <input name="keyword" type="text" id="search-keyword" /> <select name="searchtype" id="search-option"> <option value="titlekeyword" selected='1'>智能模糊搜索</option> <option value="title">僅搜索標(biāo)題</option> </select> <button type="submit">搜索</button> </div> </form> |
修改為
<form action="/plus/advancedsearch.php" method="post"> <div> <h4>搜索</h4> <input type="hidden" name="mid" value="1" /> <input type="hidden" name="dopost" value="search" /> 關(guān)鍵詞:<input type="text" name="q" /> <input type="submit" name="submit" value="開(kāi)始全文搜索" /></div> </form> |



















