The cListPagination tag doesn't display anything by itself. It loops over itself for every paginated page and executes other enclosed pagination tags. It must be enclosed within a container list. Background: This tag is part of the Container List Pagination Tag set i.e. all content:cListPagination* tags. These tags facilitate displaying navigation widgets for paginated container lists, or what we refer to as Quick Page Access Buttons. These tags displays break up the a container list into a smaller sets (a.k.a. ranges/pagination windows) of pages. Below is an example generated menu :
<<Previous results 1 2 3 Next results>>
FYI here is its associated HTML code :
<a href="javascript:changePage(document.jahiapageform,document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_0');"> \<\<Previous results</a>\
<a href="javascript:changePage(document.jahiapageform,document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_0');"> 1</a>\ <b>
<a href="javascript:changePage(document.jahiapageform,document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_5');"> 2</a>\ </b>
<a href="javascript:changePage(document.jahiapageform,document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_10');"> 3</a>\
<a href="javascript:changePage(document.jahiapageform,document.jahiapageform.ctnscroll_directoryPeopleContainer,'5_10');"> Next results\>\></a> </p>
Example :
<content:jahiaPageForm name="jahiapageform">
<content:containerList name="directoryProjectContainer" title="Project container" windowSize="5">
<content:cListPaginationCurrentPageScrollingValue valueOnly="false" />
<table border="0">
<tr>
<td align="left" valign="top"><b> Search : </b></td>
<td valign="top" align="left">
<input type="text" name="<content:ctnListSQueryInputName/>" value="<content:ctnListSQueryInputValue/>" size="30"/> <a href="javascript:document.jahiapageform.submit()">Go</a>
</td>
</tr>
<tr>
<td align="left" valign="top"><b> Filter by : </b></td>
<td>
<select name="directoryProjectCategory_filter" onChange="javascript:document.jahiapageform.submit()">
<%
Enumeration projectCategoriesEnum= projectCategoriesVector.elements();
while (projectCategoriesEnum.hasMoreElements()) {
String myCat = (String) projectCategoriesEnum.nextElement();
%><option value="<%=myCat%>" <% if (selProjectCategory.equals(myCat)){%>selected<% }%>><%=myCat%></option><%
}
%>
</select>
</td>
</tr>
<tr>
<td align="left" valign="top"><b> Result : </b></td>
<td width="100%" align="left" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" nowrap>
<select class="text" name="directoryProjectContainer_windowsize" onChange="javascript:document.jahiapageform.submit()">
<option value="5" <% if (selProjectWindowSize.equals("5")){%>selected<% }%>>5</option>
<option value="10" <% if (selProjectWindowSize.equals("10")){%>selected<% }%>>10</option>
<option value="20" <% if (selProjectWindowSize.equals("20")){%>selected<% }%>>20</option>
</select> (Items/Page) <font size="2">[<content:cListPaginationFirstItemIndex /> - <content:cListPaginationLastItemIndex />] of <content:cListPaginationTotalSize /></font>
</td>
<td align="right" valign="top" width="100%">
<content:previousWindowButton title="<<Prev" method="post" formName="jahiapageform" />
<b> <content:cListPagination nbStepPerPage="10" > </b>
<content:cListPaginationPreviousRangeOfPages method="post" formName="jahiapageform" title=" .. "/>
<content:ifCListPaginationCurrentPage>
<b>
</content:ifCListPaginationCurrentPage>
<content:cListPaginationPageUrl method="post" formName="jahiapageform" />
<content:ifCListPaginationCurrentPage>
</b>
</content:ifCListPaginationCurrentPage>
<content:cListPaginationNextRangeOfPages method="post" formName="jahiapageform" title=" .. "/>
</content:cListPagination>
<content:nextWindowButton title="Next>>" method="post" formName="jahiapageform" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="directoryProjectContainer_sort" value="<%=projectSort%>"/>
<input type="hidden" name="directoryProjectContainer_sort_order" value="<%=projectSortOrder%>"/>
</content:containerList>
</content:jahiaPageForm>