Drupal – Increase ImageField Description Length

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


6 thoughts on “Drupal – Increase ImageField Description Length”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.