I appreciate there are lots of threads about alt and title attributes etc but I haven't found this particular issue addressed.
My use case is quite straightforward: in Media 1.x I want to define alt and title attributes for images on a per-use basis using fields on the content type but when using Media the core fields for these are hidden. The most straightforward way to do this would be with a template.php override
I found an example of this described at http://drupal.stackexchange.com/questions/33758/drupal-7-override-image-... but within hook_preprocess_image the variables for the fields I created aren't available.
Any ideas?
Comments
Comment #1
Johann Wagner CreditAttribution: Johann Wagner commentedThis worked for me :
template.php of your theme :
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team