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?

1 Answer 1

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.

3
  • Yes the channel entries tag has a limit of 14. Apr 9, 2014 at 18:17
  • So does that mean that domain.com/P14 is essentially page 2? Apr 9, 2014 at 18:17
  • Yes, it means exactly that. Apr 9, 2014 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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