主题 : 关于新闻列表 |
级别: 版主
![]() |
2# 发表于:2015-04-13 12:07:10 IP:117.114.*.*
加个判断条件
[#if a_index< ][/#if]这样进行判断,前几条变颜色 |
||
---|---|---|---|
级别: 解元
![]() |
3# 发表于:2015-04-13 12:12:31 IP:113.15.*.*
回复第2楼
![]() <ul> [@cms_content_list count='7' orderBy='4' titLen='30' channelId='66' channelOption='1' dateFormat='yyyy-MM-dd'] [#list tag_list as a] [#if a_index<3 ] <a href="${a.url}" title="${a.title}" target="_blank"> <li> <div class="news_title"> <p><span>${a_index+1}</span>、[@text_cut s=a.title len=titLen /]</p> </div> <div class="news_time"> ${a.date?string(dateFormat)} </div> </li> </a> [/#if] [/#list] [/@cms_content_list] </ul> 设置前三条,就只显示三条了 |
||
---|---|---|---|
1
共1页