藏茗山學院
安全可靠、性能穩定、追求極致的用戶體驗
JEECMSv9.x常用功能標簽大全
Tag關鍵詞分頁 [@cms_tag_page]
[@cms_tag_page count='8']
[#list tag_list as tag]
<a href="${base}/tag/${tag.id}.jspx" target="_blank">${tag.name}</a>[#if tag_has_next]|[/#if][/#list]
[@cms_pagination sysPage='1'/]
[/@cms_tag_page]
參數詳解:
count: 每頁數
Tag關鍵詞列表 [@cms_tag_list]
[@cms_tag_list count='8']
[#list tag_list as tag]<a href="${base}/tag/${tag.id}.jspx" target="_blank">${tag.name}</a>[#if tag_has_next]|[/#if][/#list]
[/@cms_tag_list]
參數詳解
count:顯示個數
作用:顯示tag列表
全文檢索分頁 [@cms_lucene_page]
[@cms_lucene_page q=q channelId=channelId startDate=startDate endDate=endDate descLen='170' append='...' count='10' ]
搜索結果分頁標簽
參數詳解
q: 搜索關鍵字
siteId:站點ID
channeled:欄目ID
startDate::開始時間
endDate:結束時間
count 分頁數
作用:對搜索結果分頁
具體例子:
[#if q??]
[@cms_lucene_page q=q channelId=channelId startDate=startDate endDate=endDate descLen='170' append='...' count='10' ]
<div class="searchNav">您搜索的“<span>${input!}</span>”, 共有<span>${tag_pagination.totalCount!}</span>個結果</div>
<div class="searchList">
[#list tag_list as s]
<div class="item">
<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>
<div class="pagination">[@cms_pagination sysPage='1'/]</div>
[/@cms_lucene_page]
全文檢索列表 [@cms_lucene_list]
搜索結果列表標簽
參數詳解
q: 搜索關鍵字
siteId:站點ID
channeled:欄目ID
startDate::開始時間
endDate:結束時間
作用:對搜索結果列表
具體例子:
<div class="w96" style="min-height:500px;">
[#if q??]
[@cms_lucene_list q=q channelId=channelId descLen='100' append='...' count='4' sysPage='1' ]
<div class="search_msg">
您搜索的<span class="red">“${q!}”</span>,共有<span class="red">${tag_list?size} 條</span>查詢結果,[@process_time/]
</div>
[#list tag_list as s]
<dl class="list3">
<dt><span>[<a href="${s.ctgUrl}" target="_blank">${s.ctgName}</a>]</span> <a href="${s.url}" title="${s.title}" target="_blank">${s.title}</a></dt>
<dd class="zy">[@text_cut s=s.description len=descLen append=append/]</dd>
<dd>來源:<a href="${s.originUrl!}" target="_blank">${s.origin!'本站原創'}</a> 瀏覽次數:${s.views}次 發布時間: ${s.releaseDate} </dd>
</dl>
[/#list]
[/@cms_lucene_list]
[/#if]
</div>