I wrote an application in rails 4. In that app, I have two pagination in single page ‘x (page)’. Params like groups and page in the url.
Url looks like:
https://example.com/x?page=2&group=4
Initial page:
https://example.com/x
If pagination page params, then
https://example.com/x?page=2
If paginating groups params, then
https://example.com/x?group=2
If paginating both,then
https://example.com/x?page=2&group=2
and so on.
I am using Kaminari gem to do pagination. In that gem I used rel_next_prev_link_tags helper to show link tag for prev/next.
How to show link tags for multiple pagination?
2
Answers
I created an custom helper to process the URL and based on params create the categorized link tags. ex: In view,
You can’t show search engines two-dimensional pagination. In your case it looks more like grouping/categorizing + pagination.
Like:
Etc.