Hey, great module.

I can't put a large chunk off text in a single table-cell. Drupal cuts it off. Is there a workaround?

Comments

kevin hankens’s picture

Hey there, thanks for the note. It is most likely the case that the HTML textfield is cutting it off. You could potentially form_alter the textareas to allow a longer max length, or even form_alter them to be textfields or something crazy. It renders the input form using a table, so the formatting should be reasonably sane if you don't allow too many columns in the textfield.

Hope that helps!

juzzuu’s picture

Thanks for the answer.

I hacked the core module, yes I know, I shouldn't, but it works.

After line 343 '#size' => 10, (tablefield.module) I put in - '#maxlength' => 2000,

Is there a way to put this in the template.php file?
I'm not a PHP guy, so!

kevin hankens’s picture

Yeah, I wouldn't worry too much about changing that. The only real risk you run is that you'll have to re-edit the file if you upgrade to a future version. It would be way more difficult to override that setting using a form_alter or something.

I'd just stick with what you have!

juzzuu’s picture

Hey Kevin.

Thanks, I will stick to it!

stijnd’s picture

I posted a patch for this one here http://drupal.org/node/1031282

lolandese’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#1031282: Size and maxlength solution

Closing as duplicate.