迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
首頁搜索結(jié)果頁的url 和 內(nèi)頁的搜索結(jié)果頁url不一樣 是哪里修改呢
這是首頁搜索的url
這是內(nèi)頁的 多了2個(gè)參數(shù)
因?yàn)槭醉摏]欄目參數(shù),內(nèi)容有本內(nèi)容所訴的欄目參數(shù),所以會(huì)多一個(gè)欄目參數(shù)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
怎么能統(tǒng)一成 首頁這種唯一url呢
可以,把內(nèi)容頁面的代碼發(fā)來下
<!DOCTYPE html> <html> <head> {template "head.html"} {template "og-show.html"} </head> <body> {template "header.html"} <div class="show w1200"> <div> <font class="iconfont icon-didian"></font> <span>您現(xiàn)在的位置:</span> <a href="{SITE_URL}">首頁</a> <i class="iconfont icon-xiangyoucujiantou"></i> <a href="{$cat.url}">{$cat.name}</a> </div> <div> <div> <div> <h1>{$title}</h1> <span>{$updatetime}</span> <span>閱讀:{dr_show_hits($id)}</span> </div> <div> {dr_neilian($content, 1, 1)} <p>免責(zé)聲明:以上內(nèi)容源自網(wǎng)絡(luò),版權(quán)歸原作者所有,如有侵犯您的原創(chuàng)版權(quán)請告知,我們將盡快刪除相關(guān)內(nèi)容。</p> </div> {template "other.html"} </div> {template "right.html"} </div> </div> <script> var el = $('.content-2'); el.html(el.html().replace(/(.jpg|.png)"/ig, '$1!photo"')); </script> {template "footer.html"} </body> </html>
http://qqlishi.com/article-3958.html
是哪段diam?代碼?沒看出來
這個(gè)是除首頁之外 其他頁面搜索結(jié)果頁生成的url
你沒有回答6樓的問題
回復(fù)@帥帥的自由哥
搜索代碼嗎?
全站都是統(tǒng)一用的一個(gè)
<form class="header1-2" action="/index.php" method="get"> <input type="hidden" name="s" value="article"> <input type="hidden" name="c" value="search"> <input type="hidden" name="dir" id="dr_search_module_dir" > <div class="header1-2-1"> {php $top_search=[];} {cache name=module-content} {if $t.search} {php !$top_search && $top_search=$t;} {/if} {/cache} <button class="btn default" type="submit">搜索</button> <input type="text" autocomplete="off" placeholder="搜索內(nèi)容..." name="keyword" class="fc-search-keyword form-control"> </div> <script> // 這段js是用來執(zhí)行搜索的 function dr_search_module_select(dir, name) { $("#dr_search_module_dir").val(dir); $("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>'); } dr_search_module_select('{php echo defined('MOD_DIR') ? MOD_DIR : $top_search.dirname}', '{php echo defined('MOD_DIR') ? MODULE_NAME : $top_search.name}'); </script> </form>
這個(gè)是完全對的,dir參數(shù)是模塊參數(shù),不是欄目,首頁搜索也要帶dir參數(shù)才能完成搜索,你這種搜索無效果的
回復(fù)@迅睿框架技術(shù)-蘇寓
有效果呀 搜索得出來
模塊dir參數(shù)必須要存在,不能取消的
可以替換掉
<form class="header1-2" action="/index.php" method="get"> <input type="hidden" name="s" value="article"> <input type="hidden" name="c" value="search"> <div class="header1-2-1"> <button class="btn default" type="submit">搜索</button> <input type="text" autocomplete="off" placeholder="搜索內(nèi)容..." name="keyword" class="fc-search-keyword form-control"> </div> </form>
這不就可以了嗎
回復(fù)@二開/定制/使用解答專家
可以了 把
<input type="hidden" name="dir" id="dr_search_module_dir" >
去掉了
不過這個(gè)有影響嗎?
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>
因?yàn)槭醉摏]欄目參數(shù),內(nèi)容有本內(nèi)容所訴的欄目參數(shù),所以會(huì)多一個(gè)欄目參數(shù)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
怎么能統(tǒng)一成 首頁這種唯一url呢
可以,把內(nèi)容頁面的代碼發(fā)來下
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
http://qqlishi.com/article-3958.html
是哪段diam?代碼?沒看出來
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
這個(gè)是除首頁之外 其他頁面搜索結(jié)果頁生成的url
你沒有回答6樓的問題
回復(fù)@帥帥的自由哥
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
搜索代碼嗎?
全站都是統(tǒng)一用的一個(gè)
這個(gè)是完全對的,dir參數(shù)是模塊參數(shù),不是欄目,首頁搜索也要帶dir參數(shù)才能完成搜索,你這種搜索無效果的
回復(fù)@迅睿框架技術(shù)-蘇寓
有效果呀 搜索得出來
模塊dir參數(shù)必須要存在,不能取消的
可以替換掉
這不就可以了嗎
回復(fù)@二開/定制/使用解答專家
可以了 把
<input type="hidden" name="dir" id="dr_search_module_dir" >
去掉了
不過這個(gè)有影響嗎?
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>