藏茗山学院
安全可靠、性能稳定、追求极致的用户体验
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>