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.
Done =)
Reference: Increase the max size of the Imagefield description
highlighting keywords are very nice, it’s easy to find
thanks……..
LikeLike
Thanks for your comment Rajkumar. I hope the highlighted text could make the reading easier. =)
LikeLike
After these modifications u cannot use image description field in a lightbox
LikeLike
i guess probably becoz of changing input to textarea. thanks for your comment.
LikeLike
Anybody knows how this is done in Drupal 8?
LikeLike
Ok, just found it out. Add this to settings.php:
$config[‘file.settings’][‘description’][‘length’] = 255;
LikeLike