Gideon So Posted August 18, 2018 Share Posted August 18, 2018 Hi, Is it possible to do pagination for repeater field? Gideon Link to comment Share on other sites More sharing options...
dragan Posted August 18, 2018 Share Posted August 18, 2018 According to this blog post by @ryan, it was planned to add this capability for repeaters toohttps://processwire.com/blog/posts/fieldtype-pagination/#pagination-requirements But I just checked: in the details tab I don's see such a config screen... Link to comment Share on other sites More sharing options...
Gideon So Posted August 18, 2018 Author Share Posted August 18, 2018 Hi @dragan, Thanks for your reply. I think the caption below the image tells us some useful info. Quote The above screenshot is something that our Field editor automatically adds to Fieldtypes that support pagination (Setup > Fields > field > Details tab). 1. it is added automatically if criteria is met. 2. It is about the pagination in the backend but I need do pagination in the frontend. Gideon Link to comment Share on other sites More sharing options...
szabesz Posted August 18, 2018 Share Posted August 18, 2018 @LostKobrakai shared a paginator module two years ago: https://github.com/LostKobrakai/Paginator Link to comment Share on other sites More sharing options...
Gideon So Posted August 20, 2018 Author Share Posted August 20, 2018 Hi, Got it solved myself. I use $p = $pages->find("template=repeater_yourRepeaterField, limit=10") rather than $p = $page->yourRepeaterField->find("limit=10"). Gideon 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now