The ImageField allow you to add description on every image which you upload in the node. It could be enabled in the content type -> manage field.
I want to show this image description in LightBox as image caption but by default, the input area is a textbox which has limited length.
Again, Google always helps solving programmer’s headache. We can easily change the image description textbox into a textarea with a much longer length. Add the following 2 lines in sites/default/settings.php.
$conf['filefield_description_length'] = 1024; $conf['filefield_description_type'] = 'textarea';
See, the image description field becomes a textarea.
Reference: Increase the max size of the Imagefield description
6 thoughts on “Drupal – Increase ImageField Description Length”
highlighting keywords are very nice, it’s easy to find
Thanks for your comment Rajkumar. I hope the highlighted text could make the reading easier. =)
After these modifications u cannot use image description field in a lightbox
i guess probably becoz of changing input to textarea. thanks for your comment.
Anybody knows how this is done in Drupal 8?
Ok, just found it out. Add this to settings.php:
$config[‘file.settings’][‘description’][‘length’] = 255;