ProductPagingOptions.html results
Posted: Fri Nov 30, 2012 2:00 pm
I was looking at the paging feature but it will display all pages. Example I have 42 pages of products and it is wrapping and looks bad the code looks like this:
<div class="pager" th:unless="${#lists.isEmpty(products)}">
<span class="heading">Page:</span>
<ul>
<li th:each="num : ${#numbers.sequence(1, result.totalPages)}">
<a blc:paginationpagelink="${num}" th:text="${num}" th:class="${result.page == num}? 'active'"></a>
</li>
</ul>
</div>
-----------------------------------------------------------------------------------------------------------------------------------------
${#numbers.sequence(1, result.totalPages)}"> <------ I would like to display the first 5 pages with a more... like to show the next 5 but I am not so good at using Thymeleaf at the moment....
can I get a little help with this ?
<div class="pager" th:unless="${#lists.isEmpty(products)}">
<span class="heading">Page:</span>
<ul>
<li th:each="num : ${#numbers.sequence(1, result.totalPages)}">
<a blc:paginationpagelink="${num}" th:text="${num}" th:class="${result.page == num}? 'active'"></a>
</li>
</ul>
</div>
-----------------------------------------------------------------------------------------------------------------------------------------
${#numbers.sequence(1, result.totalPages)}"> <------ I would like to display the first 5 pages with a more... like to show the next 5 but I am not so good at using Thymeleaf at the moment....
can I get a little help with this ?