聯(lián)系官方銷售客服
1835022288
028-61286886
使用搜索代碼搜索內(nèi)容后,分頁(yè)出錯(cuò)。(沒(méi)有開(kāi)靜態(tài)功能)
搜索代碼(前端首頁(yè)):
<form id="search_box" action="/index.php" method="get"> <input type="hidden" name="s" value="news"> <input type="hidden" name="c" value="search"> <input type="text" id="search_cl" name="keyword" class="fc-search-keyword form-control" onblur="if(this.value==''){this.value='請(qǐng)輸入關(guān)鍵字';}" onfocus="if(this.value=='請(qǐng)輸入關(guān)鍵字'){this.value='';}" value="請(qǐng)輸入關(guān)鍵字" /> <input type="image" src="{THEME_PATH}img/sousuo.png" width="30" height="30" id="search_go" alt="輸入關(guān)鍵字" /> <script> // 這段js是用來(lái)執(zhí)行搜索的(跟原版一樣無(wú)修改) </script> </form>
顯示頁(yè)代碼:
<div class="content-wenleftt"> <div class="wrapperr"> <div> <div class="news-boxx"> {search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule} <ul class="news-listt"> <li> <div class="img-boxx"> <a target="_blank" href="{$t.url}"><img src="{dr_thumb($t.thumb)}" width="320" height="240"></a> </div> <div class="txt-boxx"> <h33> <a target="_blank" href="{$t.url}">{$t.title}</a> </h33> <p class="txt-infoo">{$t.description}</p> <div class="s-pp"><a href="{dr_cat_value($t.catid, 'url')}">{dr_cat_value($t.catid, 'name')}</a> {$t.updatetime}</div> </div> </li> </ul> {/search}<div class="p-fyy">{$pages}</div> </div> {if !$count} <div class="col-md-12 page-404"> <div class="number font-green"> 錯(cuò) 誤 </div> <div class="details"> <br /> <h3>沒(méi)有找到相關(guān)內(nèi)容...</h3> <br /> <p><a href="{SITE_URL}">返回首頁(yè)</a></p> </div> </div> {/if}</div> </div> </div>
其他頁(yè)面,如文章等,分頁(yè)
1、需要開(kāi)啟偽靜態(tài)
第2步、需要些解析規(guī)則rewrite.php
回復(fù)迅睿框架創(chuàng)始人
官方有參考的偽靜態(tài)規(guī)則嗎?
rewrite.php要單獨(dú)寫(xiě)?放在哪個(gè)位置?
手冊(cè)有教程
xunruicsm可以自動(dòng)生成解析規(guī)則,很方便的