主题 : ##需要列表后加‘new’的小伙伴们看过来。走过路过千万不要错过## |
级别: 状元
![]() |
2# 发表于:2013-11-04 14:12:11 IP:115.67.*.*
带有new图标,字体加粗,变色的首页新闻列表
[@cms_content_list channelId='1043' siteId=1026 orderBy='4' count='5' titLen='25' descLen='40' channelOption='1' dateFormat='yyyy-MM-dd'] [#list tag_list as a] <LI>[#if a.titleColor?exists] <a href="${a.url}" class='a4' style='color:${a.titleColor}' target=_blank> [#else] <a href="${a.url}" class='a4' target="_blank"> [/#if] [#if a.bold==true] <strong>[@text_cut s=a.title len=titLen append=append/]</strong></a> [#else] [@text_cut s=a.title len=titlen append=append/]</a> [/#if] </A>[#if a.isNewContentFlag?exists] [#if a.isNewContentFlag=="1"] [#if a.contentFlagHoldTime??] [#if a.contentFlagHoldTime?datetime gt a.currentDate?datetime] [#if a.newContentImgFlag??] <img name="newContentImgFlag" alt="预览" src="${a.newContentImgFlag}"/> [/#if] [/#if] [/#if] [/#if] [/#if] </LI> [/#list] [/@cms_content_list] |
||
---|---|---|---|
级别: 解元
![]() |
3# 发表于:2013-11-04 14:15:43 IP:183.62.*.*
回复第2楼.isNewContentFlag 是在哪里了?我试过你发的这个 报错
|
||
---|---|---|---|
级别: 状元
![]() |
4# 发表于:2013-11-04 14:19:21 IP:115.67.*.*
这个要改源码,具体怎么实现需要你自己去改了,这是属于二次开发的内容不在服务范围
|
||
---|---|---|---|
级别: 总版主
![]() |
9# 发表于:2014-06-13 15:14:13 IP:182.4.*.*
releaseDate是你发布文章的时间,这个在你数据库里有一个时间字段,sNewContentFlag没有这个java文件
|
||
---|---|---|---|
1
共1页