聯(lián)系官方銷售客服
1835022288
028-61286886
今天在做搜索功能的時候發(fā)現(xiàn)很怪,搜索不出東西來,翻看以前的案例也是不行,
//搜索框 <form action="/index.php" method="get" class="spotForm"> <input type="hidden" name="s" value="business"> <input type="hidden" name="c" value="search"> <div class="spotItem"> <div class="spotItemTitle">Model</div> <input class="spotItemInput" type="text" name="title"> </div> <div class="spotItem"> <div class="spotItemTitle">Classification</div> <select class="spotItemInput" name="classification"> <option>classification1</option> </select> </div> <div class="spotItem"> <div class="spotItemTitle">Brand</div> <select class="spotItemInput" name="brand"> <option>brand1</option> </select> </div> <div class="spotItem2"> <input class="spotItemInput2" type="submit" value="Search"> </div> </form>
搜索結(jié)果頁地址
/index.php?s=business&c=search&title=271&classification=classification1&brand=brand1
后臺模塊搜索中的字段也點了
但是結(jié)果搜索了個寂寞
我在頭部寫了個鏈接
{Router::search_url($params, 'keyword', 'spot','business')}
搜索也地址是
/index.php?s=business&c=search&keyword=spot
這個就能搜索出東西
到底是啥原因造成有大佬指點一二嘛
這里錯了,改成keyword
回復(fù)@迅??蚣芗夹g(shù)-吳金輝
這里是三個篩選條件,第一個就是產(chǎn)品的標(biāo)題,第二個是類型,第三個是品牌, 把標(biāo)題改成keyword是不是不對
目前的版本辦不到這種功能,要等下個版本,可以設(shè)置and匹配方式
回復(fù)@萬俟肸
回復(fù)@迅??蚣芗夹g(shù)-吳金輝
/index.php?s=business&c=search&keyword=271&classification=classification1&brand=brand1
不對,還是搜索了個寂寞
回復(fù)@迅睿框架技術(shù)-吳金輝 我之前一個案例用4.1.10做的是可以呀