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.
The current version of Media allows for title and alt attributes but they are not propagated to the image fields. Galleria relies on them to display an image caption so at the moment "Media + Galleria = no captions". A good way around it will be to use tokens to derive the captions. Colorbox for example offers an option to specify where to get the image caption from and one of the choices is an arbitrary token.
Does Galleria offer something similar? The goal is to get the caption from a Media file attribute/field.
Thanks!
Comments
Comment #1
kirilius CreditAttribution: kirilius commentedHi, any comments?
Comment #2
jamesbenison CreditAttribution: jamesbenison commentedUsing media 7.x-2.x add a file field to your content instead of an image field. Choose the media file selector widget. Then check the image box under allowed media types. This will enable the alt and title field mapping in the field formatter when you go to manage display.
Comment #3
shadysamir CreditAttribution: shadysamir commentedUsing latest media dev. Selecting file as field type does not show Alt/Title options, only description. Meanwhile, using image field type and entering proper Alt/Title for images, Galleria field formatter does not use them even as image attributes, which in turn makes captions not show up when info option is true.
Comment #4
shadysamir CreditAttribution: shadysamir commentedNo response yet for #3?