Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Create an image field to an entity/node. When editing the fields settings, you can choose and upload a default image. There is currently no option to give the default image a title or alt field.
Proposed resolution
Add title and alt fields to default images.
Remaining tasks
All
User interface changes
Add title and alt fields to default images, once they have been uploaded.
API changes
Unknown.
Original report by LTech
I have a default image uploaded for a cck image field. I would like the title on the node to show when you hover over the image. How do I do this?
Thanks
Comments
Comment #1
neRok CreditAttribution: neRok commentedThis would actually be a good feature request, along with a default alt field.
In the mean time, you will have to add the title with some code. You can do it with the following in your themes template.php
Comment #2
swentel CreditAttribution: swentel commentedComment #3
punitbook CreditAttribution: punitbook commentedThanks for updating me I was actually seeing the way to perform this activity and had already spend huge time to research.
Comment #4
claudiu.cristeaI see #1443606: Alt, title, width and height for default images as a duplicate. Let's move there.
Comment #4.0
claudiu.cristeaIssue updated to suit feature requrest and summary template used.