CMS模板置标使用手册剖析Word格式.docx
- 文档编号:21152380
- 上传时间:2023-01-28
- 格式:DOCX
- 页数:70
- 大小:975.92KB
CMS模板置标使用手册剖析Word格式.docx
《CMS模板置标使用手册剖析Word格式.docx》由会员分享,可在线阅读,更多相关《CMS模板置标使用手册剖析Word格式.docx(70页珍藏版)》请在冰豆网上搜索。
[@cms_channel_listparentId=c.id][#listtag_listasc1][@cms_channel_listparentId=c1.id][#iftag_list?
havesubchild"
[/#if][/@cms_channel_list]<
${c1.url}"
${c1.name}<
[@cms_channel_listparentId=c1.id][#iftag_list?
[@cms_channel_listparentId=c1.id][#listtag_listasc2]
${c2.url}"
${c2.name}<
[/#list][/@cms_channel_list]
1.2首页图片切换
divclass="
imju"
[@cms_content_listtypeId='
3'
styleList='
3-1'
titLen='
20'
count='
5'
flashWidth='
300'
flashHeight='
200'
textHeight='
channelOption='
1'
tpl='
2'
/]
/div>
typeId='
表示取类型为“焦点”的新闻的类型图来展示。
styleList='
图片切换flash的样式,默认有三种样式,还包括'
3-2'
,'
3-3'
titLen='
新闻标题截取长度。
count='
切换图片个数
flashWidth='
flash高度
flashHeight='
flash宽度
textHeight='
标题高度,如果设置为0,则不显示标题。
1.3首页新闻列表
此框标签的作用是获取新闻列表的栏目名称及more图标。
h3id="
lie1"
spanclass="
sl"
[@cms_channelid='
60'
]
${tag_bean.url}"
${tag_bean.name}<
[/@cms_channel]
!
—more图标-->
sr"
imgsrc="
/${res}/images/more.jpg"
/>
/h3>
]取id为60的栏目相关信息
${tag_bean.url}栏目的超链接
${tag_bean.name}栏目的名称
此标签作用是循环获取channelId='
新闻栏目下的新闻内容。
[@cms_content_listchannelId='
orderBy='
4'
descLen='
40'
append='
...'
dateFormat='
yyyy-MM-dd'
[#listtag_listasa]
${a.url}"
target=_blank>
[@text_cuts=a.titlelen=titLenappend=append/]<
[/@cms_content_list]
循环获取新闻内容。
channelId即栏目id,
orderBy='
代表最新发布的文章放最上面。
截取的新闻标题长度
代表显示5条记录。
dateFormat='
,定义日期格式。
[@text_cuts=a.titlelen=titLenappend=append/]
表示截取titLen这个长度的新闻标题进行显示。
append='
表示超过截取标题长度后,以…结尾。
[@cms_content_listtpl='
1-1'
lineHeight='
showTitleStyle='
bottomLine='
headMark='
MM-dd'
datePosition='
10'
…'
channelId='
2589'
可以选择不同的新闻列表的样式
showTitleStyle='
可以选择是否显示标题的样式:
变色,加粗等
bottomLine='
是否有底线
headMark='
选择新闻头部的箭头的样式
datePosition='
选择时间的样式
1.4带有new图标,字体加粗,变色的首页新闻列表
1043'
siteId=1026orderBy='
25'
LI>
[#ifa.titleColor?
exists]
class='
a4'
style='
color:
${a.titleColor}'
_blank"
[/#if]
[#ifa.bold==true]
strong>
/strong>
[@text_cuts=a.titlelen=titlenappend=append/]<
[#ifa.isNewContentFlag?
[#ifa.isNewContentFlag=="
1"
[#ifa.contentFlagHoldTime?
?
datetimegta.currentDate?
datetime]
[#ifa.newContentImgFlag?
imgname="
newContentImgFlag"
alt="
预览"
src="
${a.newContentImgFlag}"
/>
/LI>
1.5图文新闻
1.5.1类型图
[@cms_content_listtypeId=2count=1titLen=10channelOption="
siteId=4]
dl>
<
dt>
title="
${a.title}"
${a.typeImg!
site.defImg}"
/dt>
dd>
[@text_cuts=a.txtlen="
145"
append="
......"
/]<
/dd>
/dl>
[/#list][/@cms_content_list]
typeId=2取新闻类型为图文的新闻的类型图。
取此条新闻的类型图,即上传的图片。
取此条新闻的内容,截取长度为145,多出的用……代替
1.5.2标题图
]<
6'
[#ifa_index=0]
${a.stit!
}<
${a.titleImg!
[@text_cuts=a.desclen=descLenappend=append/]
${a.ctgUrl}"
[${a.ctgName}]<
[#ifa_index=0]如果是第一篇新闻
${a.stit}显示新闻的标题
${a.ctgUrl}新闻所在栏目的链接
[${a.ctgName}]新闻所在栏目的名字
[@text_cuts=a.desclen=descLenappend=append/]摘要
标题图
1.6滚动
1.6.1图文列表向左滚动
以下js放在head标签里。
scriptsrc="
${resSys}/jquery.js"
type="
text/javascript"
/script>
${resSys}/front.js"
[@cms_content_listtopicId='
typeId='
8'
2-4'
16'
rollLineHeight='
70'
rollSpan='
rollSpeed='
tpl='
说明:
rollLineHeight:
滚动区行高;
【按像素px计算】不能为空
rollSpeed:
滚动速度;
【滚动速度,值越小越快,最小为1】不能为空
rollSpan:
滚动跨度;
【一次滚动的像素,跨度越大,滚动就越快,但越不流畅】不能为空
topicId='
滚动中的图片要属于一个专题
图片所在内容是图文类型
1.6.2图文向上滚动
2-2'
115'
rollCols='
isSleep='
rollSleepTime='
500'
rollDisplayHeight='
1.6.3文字列表向上滚动
[@cms_content_liststyleList='
2-1'
9'
29'
100'
rollRows='
dateClass='
red'
95'
rollCols:
滚动列数
rollRows:
滚动行数
channelId='
:
表示文字列表只获取栏目编号为95的内容。
1.6.4首页滚动资讯:
divid="
header"
class="
box"
logo"
pagebox"
logofl"
onclick="
window.location.href='
${base}/'
"
bannerfr"
scripttype="
${base}/adspace.jspx?
id=1"
menu"
pageboxrelative"
dlid="
topmenu"
dtclass="
menu_first"
selected"
id="
nav1"
onmouseover="
jeeNav(this,${tag_list?
size+1})"
首页<
nav${c_index+2}"
ulid="
sub1"
滚动资讯:
notice"
ulclass="
hide"
sub${c_index+2}"
[@cms_channel_listparentId=c.id]
[#listtag_listassub]
ahref='
${sub.url}'
${sub.name}<
1.7文章显示所在栏目:
[栏目名称]
标题长度
${a.ctgUrl}新闻所在栏目的地址
${a.ctgName}新闻所在栏目的名字
1.8常用标签
1.8.1常用tags
即定义的一些关键字,可以通过点击这些关键字查询到相关新闻。
首先要在系统设置Tag管理处添加tag常用标签,比如添加反邪教
之后再添加文章时,”Tag标签处”填写反邪教。
[@cms_tag_listcount='
[#listtag_listastag]
${base}/tag/${tag.id}.jspx"
${tag.name}<
[#iftag_has_next]|
[/@cms_tag_list]
1.8.2标签详情页
w96"
style="
min-height:
500px;
[@cms_content_pagetagId=tag.idcount='
<
search_msg"
<
red"
“${tag.name}”<
Tag标签共有<
${tag_list?
size}条<
相关资讯:
<
[#listtag_pagination.listass]
dlclass="
list3"
[<
${s.ctgUrl}"
${s.ctgName}<
${s.url}"
${s.title}"
${s.title}<
ddclass="
zy"
[@text_cuts=s.descriptionlen=descLenappend=append/]<
来源:
${s.originUrl!
}"
${s.origin!
'
本站原创'
&
nbsp;
&
浏览次数:
${s.views}次&
发布时间:
${s.releaseDate}<
[/#list]
pagination"
[@cms_paginationsysPage='
[/@cms_content_page]
1.9图片友情链接
tablewidth="
100%"
border="
0"
cellspacing="
cellpadding="
tr>
td>
[@cms_content_listtypeId=2count=5titLen=10channelId=45854channelOption="
siteId=1936]
tdwidth="
180"
imgborder="
width="
height="
45"
/td>
[#if(a_index+1)%5!
=0&
a_index!
=tag_list?
size]
20"
/tr>
/table>
1.10首页栏目页中新闻列表时间标签
${a.date?
string(dateFormat)}
1.11首页序号变化
[#if(a_index+1)%2==0&
1.12首页头条
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CMS 模板 使用手册 剖析