1

I'm trying to setup pagination at the bottom of my article template.

What I want to achieve is the following:

To link to the first group of 5 pages, to show links for the next 5 pages and to link to the next group of 5 pages.

The pagination links appear but the numbered links link to pages P14, P28, & P42.

Here is my code:

{paginate}
{if {total_pages} > 1}
<nav class="centered" role="toolbar">
<ul class="pagination">
{pagination_links page_padding="5"}
{previous_page}<li><a href="{pagination_url}">&laquo;</a></li>{/previous_page}

{page}<li {if current_page}class="active"{/if}><a href="{pagination_url}">{pagination_page_number}</a></li>{/page}

{next_page}<li><a href="{pagination_url}">&raquo;</a></li>{/next_page}
{/pagination_links}
</ul>
</nav>
{/if}
{/paginate}

pagination links

Why is it linking to every 14th page?

3

Why is it linking to every 14th page?

It's not. I'm willing to bet that your channel:entries tag has a limit of 14. The links/url segments indicate entry offset, not page offset - but they achieve the same end result.

| improve this answer | |
  • Yes the channel entries tag has a limit of 14. – Niall Thompson Apr 9 '14 at 18:17
  • So does that mean that domain.com/P14 is essentially page 2? – Niall Thompson Apr 9 '14 at 18:17
  • Yes, it means exactly that. – Derek Hogue Apr 9 '14 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.