Jump to content

Limit Table


Robin S
 Share

Recommended Posts

I had a need to do this and there were some requests in the Table forum so...

LimitTable

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

For any Table field you can limit the number of rows that may be added and also prevent the use of drag-sorting and the trashing of rows. If a limit has been defined then there is an option to show all (empty) rows up to that limit.

This module does not support paginated Table fields.

Usage

Install the LimitTable module.

The module configuration screen should be self-explanatory.

You can add rows in the module config 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.

 

Module config:
limit-table-2.png

 

The effect of the above config in Page Edit. The empty rows up to the limit are shown because "Show all rows" is checked.
limit-table-page.png

 

https://github.com/Toutouwai/LimitTable
https://processwire.com/modules/limit-table/

Edited by Robin S
Added link to modules directory
  • Like 15
Link to comment
Share on other sites

  • 2 years 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

  • Recently Browsing   0 members

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