Page 1 of 1

[Solved] Search Module Pagination

Posted: Sat Oct 10, 2015 2:13 am
by waltertakashi
Hello! I'd like to know how can I do pagination with Search Module. Sometimes the search returns a long list of articles and, in this cases, pagination would be very handy.

Thank's in advance!

Walter

Re: Search Module Pagination

Posted: Tue Oct 13, 2015 1:09 am
by JohnnyB
I don't recall if there is a template based pagination available. You might try using {get_template_vars} in the search template being used and see if there are vars set for pagination. If not, you might consider a javascript solution. For example, https://github.com/jlafitte/jquery-quick-pagination

Re: Search Module Pagination

Posted: Wed Oct 14, 2015 1:56 am
by waltertakashi
JohnnyB wrote:I don't recall if there is a template based pagination available. You might try using {get_template_vars} in the search template being used and see if there are vars set for pagination. If not, you might consider a javascript solution. For example, https://github.com/jlafitte/jquery-quick-pagination
Hi Johnny, I checked the template vars but seems that it doesn't have pagination variables set.

I'll be checking the javascript solution that you suggested.

Thank you! :)

Re: Search Module Pagination

Posted: Sat Oct 17, 2015 1:06 pm
by waltertakashi
@JohnnyB, thank you very much! I used the 'quick pagination' plugin and is working perfectly.

The only "problem" is that the content is not loaded on the fly when clicking the pagination button, which could save some bandwidth and server processing. But at least I managed to organize the results.

Thank you! :)