Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
jamsilver CreditAttribution: jamsilver commentedComment #2
jamsilver CreditAttribution: jamsilver commentedActually - 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.
Comment #3
jamsilver CreditAttribution: jamsilver commentedAaannnd finally, the tablefield formatter theme function needs to support other modules altering its attributes so I can add extra classes in as necessary..
Comment #4
FiNeX CreditAttribution: FiNeX commented@jamsilver: did you published your module for configuring the responsive behavior of the tablefield?
Comment #5
Alina Basarabeanu CreditAttribution: Alina Basarabeanu commentedUpdate patch to work with current 7.x-2.x-dev version
Comment #6
colinstillwell CreditAttribution: colinstillwell commentedNew 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.
Comment #7
jenlamptonrerolled patch for latest -dev.
Comment #9
jenlamptonThis fix will be in the next version of tablefield. Thank you everyone for all your work on this improvement :)