新闻列表+分页组合
代码1
<@newsList categoryIds="5502" isPage="true" page="1" pageSize="5" titleLength="15" sort="id" sortOrder="desc" listName="ls" append="...">
<#list ls as l>
<a href="${l.href}" title="${l.title}">${l.shortTitle}</a>
<#if (l_index+1)%2==0><font color="red"> 偶 </font><#else><font color="blue"> 奇 </font></#if>
<#if !l_has_next>last</#if>
<br>
</#list>
<@pagination prev="prev" next="next"></@pagination>
</@newsList>