OpenCms 带分页的新闻列表

2019-05-12 08:02:45丽君

      </c:when>
      <c:otherwise>
                   <a href="<cms:link>${cms:getCmsObject(pageContext).requestContext.uri}</cms:link><c:out value="?pageIndex=${i}"/>"><c:out value="${i}"/></a> 
      </c:otherwise>    
  </c:choose>
</c:forEach>
<c:if test="${contentInfo.pageIndex < contentInfo.pageCount}">
       <a href="<cms:link>${cms:getCmsObject(pageContext).requestContext.uri}</cms:link><c:out value="?pageIndex=${contentInfo.pageIndex+1}"/>">下一页</a> 
</c:if>
</cms:contentload>

</body>
</html>