Closed (duplicate)
Project:
ImageField
Version:
5.x-2.6
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 22:27 UTC
Updated:
2 Apr 2009 at 08:07 UTC
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);
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield_5.x-2.6_longtitle_0.patch | 1.17 KB | HorsePunchKid |
Comments
Comment #1
HorsePunchKid commentedLooks like the
textareatype 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.Comment #2
quicksketchThe 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.
Comment #3
HorsePunchKid commentedThanks for the info. I suppose I should start planning to migrate to D6!
Comment #4
quicksketch#331713: Increase maximum length of title and alt attributes