Open GoogleCodeExporter opened 8 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
willyest...@gmail.com
[deleted comment]
infoPage标签返回的对象为infoList,pager,请在遍历infoList的时候获� ��index,如: <#list infoList as info>${info_index}</#list>
Original comment by chinafreeteam on 24 Sep 2013 at 1:01
chinafreeteam
Original issue reported on code.google.com by
willyest...@gmail.com
on 31 Jul 2013 at 8:40