Jump to content

The possibility to specify a maximum item limit for a Repeater field


szabesz
 Share

Recommended Posts

From time to time people run into this issue:
https://processwire.com/talk/topic/13089-repeater-field-limits-and-server-timeouts/

So the idea is simple:
Admin > Setup > Fields > Details (tab) > Maximum items allowed / 0 = No limit
Something like the one for images.

And may be a nice little yellow boxed notice underneath, about why it is a good idea to impose a limit...

I love these inline help bits, they help me a lot.

EDIT: I forgot to add that - of course - we also need some GUI voodoo to support it.

Edited by szabesz
Link to comment
Share on other sites

I think there was a discussion on this, and it was on a (lengthy) todo list.

I also think that the default repeaters should be avoided, and I wouldn't mind removing them entirely.

  • Like 2
Link to comment
Share on other sites

  • 3 months later...

Additional use cases to justify the need for this :)

- one-to-one relationship support. Example: internal only SEO "Pages" (records) attached to one page only, e.g.:

- JS slider records, when we need to limit the number of items by design

- all sorts of other records when we need to limit the number of records by design...

While we are at it, such a limiting capability can be handy in the case of other types too, such as AsmSelect, PageTable to name a few :P

Edited by szabesz
removed "images", we have that one :)
  • Like 1
Link to comment
Share on other sites

  • 3 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
 Share

×
×
  • Create New...