About Limit Repeater

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

Category Admin Helpers
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorrobin-s
Module Version0.0.4
Class NameLimitRepeater
Compatibility3.0
Date AddedNovember 24, 2016
Last UpdatedMarch 10, 2017
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/LimitRepeater/
How to install or uninstall modules

README

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.

Comments

  • Marco

    Marco 3 weeks ago 00

    Good work Robin, works well on my PW 3 site.

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.