Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Order Pagination #356

Closed
kricore opened this issue Aug 30, 2016 · 5 comments
Closed

Random Order Pagination #356

kricore opened this issue Aug 30, 2016 · 5 comments

Comments

@kricore
Copy link
Contributor

kricore commented Aug 30, 2016

The items (being randomly loaded) appear multiple times.

Sauce here:
http://www.joomlaworks.net/forum/k2-en/46526-k2-random-order-pagination

@kavadas
Copy link
Contributor

kavadas commented Aug 30, 2016

This is how SQL random sorting works. There is nothing we can do about it. For sites with a few items we could load all of them at once, but i don't think this is something we need to add in K2.

@heyjoecampbell
Copy link

I recommend either the removal of "random" from list ordering options or provide details of its limitations.

@PixelPerfectCreative
Copy link

My client has 50 K2 items in a category called "projects". They only show 6 items per page. They would like these items to be in a random order so their users always see the projects in a different order when they visit the site. However, when the user clicks to go to page 2, 3, 4, etc... the K2 items often repeat. I just need a way for the items to only "shuffle" when a user visits the "Projects" page, but then not repeat as they click though the pagination.

@kavadas
Copy link
Contributor

kavadas commented Sep 23, 2016

@PixelPerfectCreative

What you can do is load all of the 50 items in a page and then use javascript to split them into pages and create pagination.

@heyjoecampbell
Copy link

@PixelPerfectCreative

You could create a page and use a module to control the list items.

RAXO All-mode K2 offers an add-on template with pagination functionality:
http://www.raxo.org/additional-templates/all-mode-pagination.html

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

No branches or pull requests

5 participants