At first sight, the Wysiwyg image upload module appears to be working fine - many many thanks for that....

After 3 images, however, I ran into the max. length of the title field, which is set at 255 characters. I went into the appropriate Mysql table and changed the length at a more useful 1,000, but the input textfield still limits me to 255. That is really not enough, e.g. for scientific illustrations, which often contain sort of a "small story" as the image's caption.

My question: where can I adjust the setting of the Title input field to make it accept 1,000 characters instead of 255?

Comments

eugenmayer’s picture

Well a title is a single-line textfield and not the right place for a story. I would suggest you just use the submodules API of WUI and implement a short "description" addition. There you can have whatever you like.

Look in the issue queue, there you can see people implmenting the "caption" submodule. Just rename it, make it a "textarea" and a text mysql field and you are alread done :)

AFAIK drupal limits a textfield to 255, might even be a HTML limitation ( browser )

modul’s picture

Thanks, Eugen. I went to http://drupal.org/node/1003230, installed the submodule which I found there, changed varchar to text and textfield to textarea, and solved it was :-)
Might be a nice idea, though, to add it to the core of your (verrrrrry fine) module.
One other thing which I changed, was the collapsed state of the "Extra" part of the input zone of your module. I changed "collapsed" to "false" in wysiwyg_imageupload.form.inc . That way, the new caption field is readily accessible. Saves 1 keystroke. Imagine the cosmic importance of this :-)

eugenmayer’s picture

Issue tags: +http://forum.surf-magazin.de/showthread.php?t=48893

Use form_alter to change the collpasible value instead of hacking the module!
It would be cool if you could upload the module called "wysiwyg_imageupload_description" or "story" ..and i will happily add it to the core modules ( same as the caption module ).

I just dont want to bloat up the core one, thats why all those extra things are "submodules". Most of the people need simple imageupload solutions, some like you need more ( and both should be satisfied )

eugenmayer’s picture

Status: Active » Closed (fixed)