We added the Colorbox module to our d8dev site in the previous chapter to display the images in the overlay. Currently, the Colorbox module displays the title of the recipe as the caption for all recipe images displayed in the Colorbox overlay for our Recipe content type, as shown in the following screenshot. But it's not working with image properties such as title and alt values.
So for that, we raised an issue in the Colorbox issues queue (https://www.drupal.org/node/2645160) in Chapter 7, Adding Media to Our Site. Colorbox maintainer @frjo
replied as follows:
"The file entity module is a contrib module so what you really is asking for is that Colorbox support it. Change the title so this is clear. I have never used that module but if someone who does sends in a patch I will take a look at it."
Before we begin creating a patch, we need to have a clear understanding of why it isn't showing up in this case of the title
or alt
property. I went through the Colorbox...