主题 : 搜索结果什么按时间来排列呀? |
级别: 进士
![]() |
3# 发表于:2017-12-13 11:28:47 IP:27.221.*.*
回复第2楼搜索栏
<section class="content_w850" style="background-color: #fff;width: 1200px;"> [#if q??] [@cms_lucene_page orderbyid=4 q=q channelId=channelId startDate=startDate endDate=endDate descLen='170' append='...' count='10' ] <div class="searchNav" style="margin-left: 20px;">您搜索的“<span>${input!}</span>”, 共有<span>${tag_pagination.totalCount!}</span>个结果</div> <div class="searchList"> [#list tag_list as s] <div class="item" style="margin-left: 30px;"> <div class="search-title"><a href="${s.url}" title="${s.title}" target="_blank">${s.title?replace('${q!}', "<span>${q!}</span>")}</a></div> [#if s.txt??] <div class="search-txt"> [#assign bb=s.txt?replace("<(S*?)[^>]*>.*?|<.*? />","","ri")?replace(" ","","ri")/] [@text_cut s=bb?replace('${q!}', "<span style='color: red;'>${q!}</span>") len=descLen append=append/] </div> [/#if] <div class="search-date"><a href="${s.ctgUrl}" target="_blank">${s.ctgName}</a><em>${s.releaseDate}</em>浏览 <span>${s.views}</span></div> </div> [/#list] </div> [#include "../include/page.html"/] [/@cms_lucene_page] [/#if] </section> 就是搜索后的内容什么安时间降排列? |
||
---|---|---|---|
级别: 版主
![]() |
4# 发表于:2017-12-13 11:46:45 IP:115.233.*.*
回复第3楼
orderBy :排序方式 0:ID降序 1:ID升序 2:发布时间降序 3:发布时间升序 4:固定级别降序,发布时间降序 5:固定级别降序,发布时间升序 6:日访问降序(推荐)7:周访问降序 8:月访问降序 9:总访问降序 10:日评论降序(推荐) 11:周评论降序 12:月评论降序 13:总评论降序 14:日下载降序(推荐)15:周下载降序 16:月下载降序 17:总下载降序 18:日顶降序(推荐) 19:周顶降序 20:月顶降序 21:总顶降序 您参考一下 |
||
---|---|---|---|
1
共1页