6D Labs / CQ Extended Tag Library / API / Expression Language Functions / listPages

listPages EL Function

Lists the child pages of a particular page. If filtering is enabled the default PageFilter which skips invalid and hidden pages will be used.

Parameters

  • path - com.day.cq.wcm.api.Page - the page for which to list the child pages
  • filter - java.lang.Boolean - whether or not to filter the child pages

Returns

java.util.Iterator<com.day.cq.wcm.api.Page> - the child pages

Example:

<ul>
  <c:forEach var="childPage" items="${ext:listPages(currentPage, true)}">
  	<li><a href="${childPage.path}.html">${ext:getTitle(childPage,'page')}</a>
  </c:forEach>
</ul>

Follow Our Blog Posts

Latest CQ News