LimitRepeater by Robin S

Allows limits and restrictions to be placed on selected Repeater fields.

LimitRepeater

A module for ProcessWire CMS/CMF. Allows limits and restrictions to be placed on selected Repeater fields.

For any Repeater field and for any or all roles, you can limit the number of items that may be added and also prevent the use of drag-sorting, toggling of published state, and the trashing of items.

For example, you could fix a Repeater at some arbitrary number of items for non-superuser roles by setting the limit to 1 and checking "No trash". Then as superuser you can add as many Repeater items as needed but other roles may not change the number of items.

Usage


Install the LimitRepeater module.

The module configuration screen should be self-explanatory.

You can add rows as needed using the "Add another row" button.

Please note that limits and restrictions are applied with CSS/JS so should not be considered tamper-proof.

License


Released under Mozilla Public License v2. See file LICENSE for details.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Twitter updates

  • ProcessWire 3.0.185 (dev) core updates, plus new Session Allow module— More
    17 September 2021
  • Three new ProcessWire Textformatter modules: Find/Replace, Markdown in Markup, and Emoji— More
    3 September 2021
  • This week we have a new master version released after a year in the making. With nearly 40 pull requests, hundreds of new additions and more than 100 issue reports resolved, this new version has a ton of great new stuff— More
    27 August 2021

Latest news

  • ProcessWire Weekly #384
    In the 384th issue of ProcessWire Weekly we'll cover the latest core updates, introduce a new module called Session Allow, and highlight a new site of the week. Read on!
    Weekly.pw / 18 September 2021
  • ProcessWire 3.0.184 new master/main version
    This week we have a new master/main version released after a full year in the making. As you might imagine, this new version has a ton of great new stuff and we’ll try to cover much of it here.
    Blog / 27 August 2021
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer