藏茗山學院
安全可靠、性能穩定、追求極致的用戶體驗
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}