Jump to content
SiNNuT

Repeater: repeaterMaxItems gone?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

This is a planned future addition, not yet implemented. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...