藏茗山学院
安全可靠、性能稳定、追求极致的用户体验
JEECMSv9.x常用功能标签大全
热词[@cms_searchword]
[@cms_searchword_list word='' siteId='1' recommend='2' orderBy='4' count='5']
[#list tag_list as word]
${word.name!}
[/#list]
[/@cms_searchword_list]
说明:
word 词汇
recommend 推荐 1, 非推荐 0 全部 2
siteId 站点ID
orderBy 排序 1搜索次数降序 2搜索次数升序 3排序降序 4排序升序
count 列表个数
参数除了count都是非必选
截取 [@cms_cut]
[@text_cut s=a.title len=’20’ append=”…”/]
标签介绍
参数详解:
s:截取字符串长度
len:保留字符的长度
append:保留字段以后的追加字符以。。。。显示
作用:截取过长的字符串,如标题标题太长了可以。。。。表示
具体例子:
[@cms_content_list channelId='60' count='5' titLen='20' append='...' channelOption='1' dateFormat='yyyy-MM-dd']
[#list tag_list as a]
<li><a href="${a.url}" target=_blank>[@text_cut s=a.title len=titLenappend=append/]</a></li>
[/#list]
[/@cms_content_list]
友情链接 [@cms_friendink_list]
[@cms_friendlink_list ctgId='2' siteId=site.id]
标签介绍
参数详解
ctgId:链接类别
siteId:站点ID
文字链接
[@cms_friendlink_list ctgId='1']
[#list tag_list as link]
<div style="margin-left:1.5%; float:left;">
<a href="${link.domain}" onclick="$.get('${base}/friendlink_view.jspx?id=${link.id}')"target="_blank">${link.name}</a>
</div>
[/#list]
[/@cms_friendlink_list]
链接网址:${link.domain}
链接名称:${link.name}
图片链接
[@cms_friendlink_list ctgId='2']
[#list tag_list as link] <li><a href="${link.domain}" target="_blank" onclick="$.get('${base}/friendlink_view.jspx?id=${link.id}')"> <imgsrc="${link.logo!site.defImg}" alt="${link.name}"/> </a></li>[/#list]
[/@cms_friendlink_list]
链接的LOGO:${link.logo!site.defImg}
友情链接分类 [@cms_friendlink_ctg_list]
[@cms_friendlink_ctg_list siteId='1']
[#list tag_list as ctg]
${ctg.name}
[/#list]
[/@cms_friendlink_ctg_list]
链接分类名: ${ctg.name}