An excellent module which provide dynamically added fields (CCK). I'd like to suggest the following features:

  • Ability to lock the number of rows or columns. For example, I know that my table will have 3 columns, and I don't want the user to be able to change it
  • Ability to lock the default title row. For example, I know my table will have the column headings (a) First name (b) Last name (c) Age, and I don't want users to be able to change it.
  • Instead of being able to enter the number of columns/rows, I'd like to be able to optionally display:
    • Add column; Remove column
    • Add row; Remove row
  • Ability to set the minimum and maximum number of columns/rows.
  • Ability to be able to require the number of rows/columns that have information.
  • Ability to define text and labels:
    • "The first row will appear as the table header."
    • "How many Columns:" / rows
    • "Rebuild table"
    • Add column/row; Remove column/row

Comments

zeezhao’s picture

subscribing

danzsmith’s picture

zeezhao’s picture

Thanks. I already use that.

However, it would be nice to be able to configure all other options e.g.
- Hide "Import from CSV"
- Lock ability to edit header

etc

jonathan_hunt’s picture

Try my patch at http://drupal.org/node/764788#comment-3817136; it makes the CSV upload a per-field option.

It would be nice to be able to lock certain rows and columns also.

jonathan_hunt’s picture

I've done some further hacking on making specific cells readonly, and support for simplistic formula.
http://drupal.org/node/867574#comment-3819306

iantresman’s picture

Simplistic formula sounds like an exciting addition. Nice one.

jonathan_hunt’s picture

FYI, I've posted some code at http://drupal.org/node/867574#comment-3950696

bojanz’s picture

I have a use case (a D7 contrib module) that Tablefield might be able to solve.
The formula code sounds a bit overcomplicated to my use case, what should be the best is probably:

In field settings, provide an option to lock the table. This means no changing of numbers of rows / columns, and no changing of cells which are already filled in.

An additional option might be to allow the table to be unlocked for certain roles (a permission).

EDIT: Posted a patch that allows default values to be locked in D7 (the second part of my idea above), at #1051070: Lock default values from editing on node add/edit

kevin hankens’s picture

Thanks for all of the thoughts. I'm going to commit the patch from bojanz which will take care of setting static cells: #1051070: Lock default values from editing on node add/edit

I'll try to look into the code to restrict rebuilds based on perms.

Also, thanks for being patient with the new features - got a new baby and a very fulltime job, so that slows things down :)

lolandese’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closing as "Won't fix" because the Drupal 6 version is unsupported and the issue doesn't seem to appear on Drupal 7 or 8. If you believe it does, feel free to reopen the issue and change the version as appropriate.

Of course you can also reopen the issue if you provide a patch that fixes the issue.