Skip to content

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

Description

@GoogleCodeExporter

直接用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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions