Page 1 of 1

ProductPagingOptions.html results

Posted: Fri Nov 30, 2012 2:00 pm
by limebot
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 ?

Re: ProductPagingOptions.html results

Posted: Thu Jan 03, 2013 5:14 pm
by limebot
anybody have any Ideas?