“欄目模型字段”新建了“文本字段” 默認的模塊搜索字段出不來,如何寫才能匹配
<input class="input" onkeypress="if(event.keyCode==13) {dr_module_search('search_keyword');return false;}" name='keyword' value='{$keyword}' id='search_keyword' placeholder="此處輸入查詢的標準名稱(標準號)" type="text" />
<button type="button" onclick="dr_module_search('search_keyword')" >提交查詢</button>
<script>
// 這段js是用來執(zhí)行搜索的
function dr_module_search(name) {
var url="{Router::search_url($params, 'keyword', 'dayruicom')}";
var value = $("#"+name).val();
if (value) {
location.href=url.replace('dayruicom', value);
} else {
$("#"+name).focus()
dr_tips(0, "輸入關(guān)鍵字");
}
return false;
}
</script>


是不是不能檢索欄目字段
參考文檔:《欄目模型字段參與搜索》
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!