1 (edited by Avaray 2014-12-25 13:31:03)

Topic: Need help with code - Bootstrap and Pagination

Im beginner so I need your help.
I want to use pagination to default blog plugin that comes with monstra.
Im pretty sure I must do something with file /plugins/blog/views/frontend/pager.view.php
Probably I must use just:

But where? Please help.

2 (edited by Avaray 2015-01-03 17:56:08)

Re: Need help with code - Bootstrap and Pagination

So I played today a little bit with it.
Its almost perfect, but "buttons" are not showing only at 1st page. Any ideas?
You can see it here: http://avaray.info/blog?page=2



$pages) $right_neighbour = $pages; if ($page > 1) { echo ' '; } ?>

Re: Need help with code - Bootstrap and Pagination

Try this:



$pages) $right_neighbour = $pages; // Start pagination out of if condition $html = ''; // render html echo $html; ?>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

4 (edited by Avaray 2015-01-03 23:53:38)

Re: Need help with code - Bootstrap and Pagination

Ok, nevermind. My friend told me theres small fault in code in line 12.

Is:

if ($page > 1) {

Should be:

if ($page >= 1) {

And thanks Nakome for code smile