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

Multiple pager #191

Open
ghost opened this issue Nov 13, 2015 · 1 comment
Open

Multiple pager #191

ghost opened this issue Nov 13, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 13, 2015

There are 2 tables. Each has it's own pager. I want that the user can be on page 2 on the first table and on page 5 on the second table on the same time.

That because it is important that both pagers are working together.

Does this work? If yes: What should I do?

@stof
Copy link
Contributor

stof commented Nov 13, 2015

It is possible if you use different query parameters for the pages of each pager instead of using page.

If you use the Symfony bundle, there is a pageParameter option accepting a property path to set the page in the routing parameters when rendering the url for the pagination controls (by default, it is '[page]').
And regarding reading the query parameter to configure the current page of the Pagerfanta instance, this happens in your own code.

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

1 participant