zhaolong1990ok / freecms

Automatically exported from code.google.com/p/freecms
0 stars 0 forks source link

infoPage获取infoList如何获得index参数? #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

直接用infoList是可以获得index参数的
===================================
<@infoList siteid="${site.id}" channelPagemark="动态" num="2" titleLen="15"; 
info,index>    <H1 > ${index+1} . <a href="${info.pageurl}" 
target="_blank">${info.showtitle}</a></H1> </@infoList>

但是用infoPage获取的infoList如何再获得index参数?
==============================================
<@infoPage siteid="${site.id}" channelid="${currChannel.id}" num="1" 
page="${page}"                      titleLen="48" dateFormat="yyyy-MM-dd"; 
infoList,pager>   <ul>       <#list infoList as info>       <li>               
<a href="${info.pageurl}" target="_blank">${info.showtitle}</a>               
${info.addtimeStr}       </li>       </#list>   </ul>   ${pager.pageStr}   
</@infoPage>

Original issue reported on code.google.com by willyest...@gmail.com on 31 Jul 2013 at 8:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
infoPage标签返回的对象为infoList,pager,请在遍历infoList的时候获�
��index,如:
<#list infoList as info>${info_index}</#list>

Original comment by chinafreeteam on 24 Sep 2013 at 1:01