Here's a quick patch that gives you more space to add text to the title attribute of an image. This is useful when you're using something like thickbox that will put your title text into a paragraph beneath the image. If there's interest, I'm happy to do something about updating existing columns to be longer. With this patch, you'll still need to:

alter table content_field_[yourfield] modify field_[yourfield]_title varchar(2000);

Comments

HorsePunchKid’s picture

Looks like the textarea type doesn't get to have a maxlength. I'm not sure how to handle that; probably add a clause to _imagefield_widget_upload_validate. Again, if there's interest, I can flesh this out a bit more.

quicksketch’s picture

Status: Needs review » Needs work

The Drupal 5 version is now in maintenance only, so it's unlikely that this feature will be added. It's interesting to note that in Drupal 6 the title text is stored in the "data" column of FileField, which is a "text" value field, which is unlimited for all practical purposes. Some database systems prevent you from making a varchar greater than 255 characters to begin with, since anything longer is better suited to a "text" column.

HorsePunchKid’s picture

Thanks for the info. I suppose I should start planning to migrate to D6!

quicksketch’s picture

Status: Needs work » Closed (duplicate)