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

Issue with Pagination plugin #419

Closed
ACast59 opened this issue Feb 17, 2018 · 2 comments
Closed

Issue with Pagination plugin #419

ACast59 opened this issue Feb 17, 2018 · 2 comments

Comments

@ACast59
Copy link

ACast59 commented Feb 17, 2018

Normally i would open an issue in rewdy/Pico-Pagination but since the developer hasn't been active for about a year, may as well open it here.

My issue is that i can only use the plugin to create a pagination in a single "sub" but if i want to use it in two separate "subs" like blog and blog2 it suddenly breaks. Is the plugin not designed to handle something like this?, i'm very new to picocms and considering using it on a site i'm going to create but first i have to make sure things work the way i want them to.

Thanks.

@PhrozenByte
Copy link
Collaborator

You should try to contact the plugin developer, just because he didn't change anything for a year doesn't mean that he's no longer supporting his plugin. AFAIK this isn't possible with rewdy/Pico-Pagination, but the plugin developer might add this feature. It doesn't hurt to ask 😉

Anyway, starting with Pico 2.0 (you can safely use it in production, the only reason this isn't final yet are missing docs, see v2.0.0-beta.2 and #401) you don't really need a plugin for that. You can use the page tree together with the possibility to access HTTP GET/POST variables to implement pagination with pure Twig. See #412 for some info about the page tree, and PhrozenByte/pico-http-params for info about accessing HTTP GET/POST variables (you won't need this plugin, it's already in Pico's core starting with version 2.0, but the API is exactly the same).

Unfortunately I can't provide you with a copy-and-paste snippet, you'll have to figure this out on your own, I just can tell you that it is possible. If you made this working I'd love to add the snippets to our cookbook, allowing others to learn from your work.

@stale
Copy link

stale bot commented Feb 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! 👍

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

2 participants