Jump to content
Robin S

Limit Table

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.

 

https://github.com/Toutouwai/LimitTable

 

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

  • Like 14

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...