时间:2021-07-21人气:-
5 进入找到以下代码:
<form action="{dede:field name='phpurl'/}/search.php" name="formsearch"><div class="form"><h4>搜索</h4><input type="hidden" name="kwtype" value="0" /><input name="keyword" type="text" class="search-keyword" id="search-keyword" /><select name="searchtype" class="search-option" id="search-option"><option value="titlekeyword" selected='1'>智能模糊搜索</option><option value="title">仅搜索标题</option></select><button type="submit" class="search-submit">搜索</button></div></form>修改为<form action="/plus/advancedsearch.php" method="post"><div class="form"><h4>搜索</h4><input type="hidden" name="mid" value="1" /><input type="hidden" name="dopost" value="search" />关键词:<input type="text" name="q" /> <input type="submit" name="submit" value="开始全文搜索" /></div></form>第二步: 登陆到织梦程序的后台找到后台-->核心-->频道模型-->内容模型管理 -->普通文章-->点击后面那个放大镜标志(最重要一步)-->附件表可供自定义搜索的字段,这里的字段是程序依据字段类型自动选择 生成的,将“文章内容”前面那个打勾。