Jump to content

Recommended Posts

Posted

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.

repeater.png

Posted

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.

  • Like 1
Posted

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.

  • Like 1
  • 1 year later...
Posted

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?

  • 2 years later...
  • 3 months later...
Posted

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.

  • Like 2
  • 10 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...