Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Pagination - Prev/Next button #9

Open
peterbrinck opened this issue Apr 26, 2016 · 0 comments
Open

Pagination - Prev/Next button #9

peterbrinck opened this issue Apr 26, 2016 · 0 comments

Comments

@peterbrinck
Copy link

I think the pagination is missing the prev/next buttons
It's a little thing, but a lot of people find it easier to use

I've added it myself, I did it this way:

<?php if ($total > 1) : ?>
<ul class="uk-pagination">

    // PREV
    <?php if($page!=1): ?>
        <li><a href="<?= $view->url('@blog/page', ['page' => $pageIndex]) ?>"><i class="uk-icon-chevron-left"></i></a></li>
    <?php endif; ?>

     // PAGINATION CODE //

    // NEXT
    <?php if($page!=$total): ?>
        <li><a href="<?= $view->url('@blog/page', ['page' => $pageIndex + 2]) ?>"><i class="uk-icon-chevron-right"></i></a></li>
    <?php endif; ?>

</ul>
<?php endif ?>

I think you should consider adding it by default, and/or making it an option

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant