CMS模板置标使用手册
[@text_cut s=a.title len=titLen append=append/]
[/#list] [/@cms_content_list]
titLen='20'标题长度
${a.ctgUrl}新闻所在栏目的地址 ${a.ctgName}新闻所在栏目的名字
1.8常用标签
1.8.1常用tags
即定义的一些关键字,可以通过点击这些关键字查询到相关新闻。
首先要在系统设置?Tag管理处添加tag常用标签,比如添加反邪教
之后再添加文章时,”Tag标签处”填写反邪教。
[@cms_tag_list count='8'] [#list tag_list as tag]
${tag.name} [#if tag_has_next]|[/#if] [/#list]
[/@cms_tag_list]
11
CMS模板置标使用手册
1.8.2标签详情页
[@cms_content_page tagId=tag.id count='10' descLen='100' append='...']
“${tag.name}” Tag标签 共有 ${tag_list?size} 条 相关资讯:
[#list tag_pagination.list as s]
- [@text_cut s=s.description len=descLen append=append/]
来源: ${s.origin!'本站原创'} 浏览次数:${s.views}次 发布时间: ${s.releaseDate}
[ target=\>${s.ctgName}]
${s.title}
[@cms_pagination sysPage='1'/] [/@cms_content_page]
1.9图片友情链接
12
CMS模板置标使用手册
[@cms_content_list typeId=2 count=5 titLen=10 channelId=45854
channelOption=\siteId=1936] [#list tag_list as a]
[#if
(a_index+1)%5!=0&&a_index!=tag_list?size]
[/#if] [/#list] [/@cms_content_list]
1.10首页栏目页中新闻列表时间标签
${a.date?string(dateFormat)}
1.11首页序号变化
[#if (a_index+1)%2==0&&a_index!=tag_list?size]
1.12首页头条
13
CMS模板置标使用手册
[@cms_content_list count='2' typeId='4' descLen='60' append='...' channelOption='1'] [#list tag_list as a]
title=\ target=\>
${a.stit}
[@text_cut s=a.desc len=descLen append=append/]
[/#list] [/@cms_content_list]typeId='4'为头条
descLen='60'控制内容管理中摘要的长度 ${a.stit}头条的标题
1.13首页推荐
[@cms_content_list count='5' recommend='1' titLen='20' dateFormat='MM-dd' channelOption='1'] [#list tag_list as a]
[${a.ctgName}]
[@text_cut s=a.title len=titLen append=append/] ${a.date?string(dateFormat)} [/#list] [/@cms_content_list]
dateFormat='MM-dd'显示月日01-04 recommend='1'内容为推荐
14
CMS模板置标使用手册
1.14首页序号
[#list tag_list as a] ${a_index+1} [/#list]
1.15站点计数
站点计数(显示浏览总数,今日浏览总数,昨日浏览总数,本月浏览总数,上月浏览总人数)
频道统计(栏目文章总数等相关信息)
[@cms_channel_statistics channelId=channel.id] 文章总数: ${contentAllCount!} 篇
待审文章: ${contentCheckingCount!} 篇
评论总数: ${commentCount!} 条
文章阅读: ${viewCount!} 人次
[/@cms_channel_statistics]
1.16首页栏目页颜色标签
[#if a.titleColor?exists]
[#else]
[/#if]
[#if a.bold==true]
[@text_cut s=a.title len=titlen append=append/] [#else]
[@text_cut s=a.title len=titlen append=append/] [/#if]
15