迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
為啥自定義搜索頁會報錯,可以每個模塊或者每個欄目設置一個獨立的搜索頁嘛
地址給我看看,不可能是null
http://yun.sxlie.com/index.php?s=api&c=api&m=cfcz&dir=news&keywords=RE
這個地址是錯誤的,應該改成
http://yun.sxlie.com/index.php?s=news&c=search&keywords=RE&catid=欄目id號
吧上面的id號改成你設置的欄目id
<form method="get" action="/index.php"> <input type="hidden" name="s" value="api"> <input type="hidden" name="c" value="api"> <input type="hidden" name="m" value="cfcz"> <input type="hidden" name="dir" id="dr_ search_module_dir" > <div class="ipt_area fl"> <input type="text" name="keywords" id="keywords" autocomplete="off" placeholder="輸入房源名稱1" class="ipt"> </div> <div class="btn_area fl"> <input type="submit" class="sbm_btn" value="搜索"> </div> </form>
搜索代碼是這樣的,應該怎么修改
<form method="get" action="/index.php"> <input type="hidden" name="s" value="news"> <input type="hidden" name="c" value="search"> <input type="hidden" name="catid" value="這理填寫欄目id號" > <div class="ipt_area fl"> <input type="text" name="keywords" id="keywords" autocomplete="off" placeholder="輸入房源名稱1" class="ipt"> </div> <div class="btn_area fl"> <input type="submit" class="sbm_btn" value="搜索"> </div> </form>
http://www.zbshanke.com/doc/746.html
可以顯示了,但是搜索不出來結果,圖二顯示有雙層這個文章的
search標簽的尾部加一個 {$debug} 我看看數據
可能是你搜索標簽寫錯了
參考文檔:《模塊內容搜索頁面》
地址給我看看,不可能是null
http://yun.sxlie.com/index.php?s=api&c=api&m=cfcz&dir=news&keywords=RE
這個地址是錯誤的,應該改成
吧上面的id號改成你設置的欄目id
搜索代碼是這樣的,應該怎么修改
http://www.zbshanke.com/doc/746.html
可以顯示了,但是搜索不出來結果,圖二顯示有雙層這個文章的
search標簽的尾部加一個 {$debug} 我看看數據
可能是你搜索標簽寫錯了
參考文檔:《模塊內容搜索頁面》