SiNNuT Posted July 1, 2012 Share Posted July 1, 2012 I just started using the repeater module from a fresh github install from today. When creating repeaters the repeaterMaxItems seems gone from the UI. I can't seem to set it anywhere. Judging from the video there should be a setting for this? Glancing over the module code there seems to be some stuff related to repeaterMaxItems that is commented out? Can someone using repeaters can confirm this? Also a screenshot from adding repeater items. This seems kind of off, with adding _repeater[id] behind the fieldname - edit - This seems to be the case if a field attached to the repeater hasn't got a label value set. I will report this on Github. Link to comment Share on other sites More sharing options...
ryan Posted July 2, 2012 Share Posted July 2, 2012 The max items is a planned future addition. I'd originally planned on having it in the first version, but decided to keep things as simple as possible for the first go around. Max items will make an appearance in the next version. When you leave out a label for a field, it's going to show the name that it's using internally. The same goes for repeaters. But because repeaters need to have the same field repeated over multiple times, they get the ID appended to the field name. That's necessary because an HTML form is all operating in the same namespace, so we can't just refer to "this_field" as "this_field". Instead we have to refer to it as "this_field for repeater item ID 1234", i.e. "this_field_repeater1234". That's what you are seeing in the screenshot. 1 Link to comment Share on other sites More sharing options...
SiNNuT Posted July 2, 2012 Author Share Posted July 2, 2012 Again, thx for your always clear and thorough answers. Maybe it can get a little annoying people asking stuff that's obvious to you but if i encounter something that i don't understand most of the time i ask to make sure i'm not missing anything and/or doing something wrong. 1 Link to comment Share on other sites More sharing options...
Manfred62 Posted August 11, 2013 Share Posted August 11, 2013 The max items is a planned future addition. Sorry for bringing back this old thread, but didn't found any new infos searching the forum. Did I missed something in the config or is this feature not yet available? Link to comment Share on other sites More sharing options...
ryan Posted August 13, 2013 Share Posted August 13, 2013 This is a planned future addition, not yet implemented. Link to comment Share on other sites More sharing options...
LaDev Posted January 29, 2016 Share Posted January 29, 2016 Is this feature still planned for future addition or did I miss something? 1 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted May 4, 2016 Share Posted May 4, 2016 Seems like this feature is still missing (in repeater, reperater Matrix and PageTable as well). I think It would be very usefull to have both min and max amount for them. Hope It will be implemented. 2 Link to comment Share on other sites More sharing options...
Marco Angeli Posted March 31, 2017 Share Posted March 31, 2017 ...would be a great implementation! Link to comment Share on other sites More sharing options...
adrian Posted March 31, 2017 Share Posted March 31, 2017 2 hours ago, Marco Angeli said: ...would be a great implementation! In repeaters: and if you need it for PageTable, @Robin created this: http://modules.processwire.com/modules/limit-page-table/ 1 Link to comment Share on other sites More sharing options...
Marco Angeli Posted April 4, 2017 Share Posted April 4, 2017 Thank you adrian! 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