Reputation: 136
I have created an image field in a content-type called "Products", but there is no description box option as it is shown in a file field. Is there any ways to add product descriptions under every product photos?
Upvotes: 1
Views: 3903
Reputation: 2344
Try the Image Field Caption module for Drupal 7.
It adds an extra text area to image fields. It is similar to the alt/title text fields already available with an image field, except it is a text area that accepts long string or html content.
To override the way the caption is displayed, take a copy of the image_field_caption.tpl.php file and place it in your theme's directory, for example:
sites/all/themes/MY_THEME/image_field_caption.tpl.php
Now modify the html to meet your needs.
Upvotes: 1
Reputation: 30001
I know this isn't the optimal solution, but you could use field_collection to achive this.
Install the module and then add a new field of type field_collection
to your content-type, then under admin/structure/field-collections
you can add both an image and a textarea field. Now you should have the ability to add an image and a corresponding description to your node.
Upvotes: 1
Reputation: 5107
This has been identified as an issue - the integration of imagefield into core from D6 to D7 saw the unfortunate loss of the option for a description field in addition to alt and title.
Try this patch: http://drupal.org/node/1067620#comment-5958190
Upvotes: 0