Seeing as this module already serializes & stores anything & everything in the field value on the entity, then it's only a small tweak to allow other modules to successfully store arbitrary data in there.

I'm currently working on a module to augment the tablefield settings form with some options for configuring the responsive behavior of the tablefield for small-screen devices, and this would be very helpful.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamsilver’s picture

Assigned: jamsilver » Unassigned
Status: Needs work » Needs review
FileSize
754 bytes
jamsilver’s picture

Actually - the formatter also needs to return a render array and not a string to allow my custom module to add e.g. custom classes etc based on the extra settings.

Updated patch attached.

jamsilver’s picture

Aaannnd finally, the tablefield formatter theme function needs to support other modules altering its attributes so I can add extra classes in as necessary..

FiNeX’s picture

Issue summary: View changes

@jamsilver: did you published your module for configuring the responsive behavior of the tablefield?

Alina Basarabeanu’s picture

Update patch to work with current 7.x-2.x-dev version

colinstillwell’s picture

New patch attached as I noticed that "(int)" was missing from line 47 of the patch. I have also named the patch to include the correct Drupal node ID for convenience.

jenlampton’s picture

rerolled patch for latest -dev.

  • jenlampton committed 60701f4 on 7.x-2.x
    Issue #2007274 by jamsilver, alinaBasa, colinstillwell88: Allow other...
jenlampton’s picture

Status: Needs review » Fixed

This fix will be in the next version of tablefield. Thank you everyone for all your work on this improvement :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.