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

Pagination #6

Open
froger-me opened this issue Dec 27, 2016 · 1 comment
Open

Pagination #6

froger-me opened this issue Dec 27, 2016 · 1 comment

Comments

@froger-me
Copy link

As substringSearch method returns an array and {% paginate %} requires am ElementCriteriaModel object, how can I create a paginated page search?

@oyvind-stenhaug
Copy link
Contributor

I guess that's not really possible with this plugin; I can't see a way to rewrite it to work with ElementCriteriaModel, even though I would like to (also for general performance reasons).

The frontend would presumably be able to paginate in some way using JavaScript (and maybe something could even be done in the template using the 'batch' filter) but that would involve writing the logic for it and would cost performance rather than save it, so it's not so great…

I'll leave this issue open in case I or someone can come up with some trick anyway.

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

No branches or pull requests

2 participants