Hi,
I want to add a caption to an un-CDS image in image gallery, how can I add something like that’s?
How can I add other BG colors or font colors to article box, thumbnail box…?
Thank’s,
Abdul,
Hi,
I want to add a caption to an un-CDS image in image gallery, how can I add something like that’s?
How can I add other BG colors or font colors to article box, thumbnail box…?
Thank’s,
Abdul,
Hello Abdul,
I am answering your questions one by one:
I want to add a caption to an un-CDS image in image gallery, how can I add something like that’s?
How can I add other BG colors or font colors to article box, thumbnail box…?
Good question. Color fields of Article Box, thumbnail box etc are also fields in paragraph types. If you visit the “Manage Form Display” page of Article Box - for example /admin/structure/paragraphs_type/cern_article_box/form-display - then you will notice that there is a list of HEX color codes
You can append this list with the desired colors.
Hope this helps. Let me know if you have more questions.
Best Regards,
Kostas
Hello Kostas,
I would like to look at the template for the image field in the CERN Image gallery paragraph (to have an exemple) but I can’t find the file.
Thank you,
Jan
Hello Jan,
The pattern that generates the image gallery is called gallery and you can find it here.
Let me know if you need something else.
Konstantinos
Hello Konstantinos,
Thank you for the link.
If I understand well, in the Image gallery paragraph type, the title field in the Image gallery Image field settings is not used. I tried to enable it but its content is not rendered in any way.
Hello Jan and thanks for the feedback. As you already mentioned the captions are supported only for CDS images for now. That happens because CDS images are based on a custom field that automatically retrieves captions from the CDS API.
On the other hand, local images use the default image field of Drupal which does not support captions by default so we would have to implement it in a custom implementation. In general the process should include adding a separate field for the caption and also overriding the default image template to include the caption or create a custom field formatter.
It is on the plans to integrate it but to be honest I hope to have a module that implements it since it is a quite basic functionality.
Hi
My problem is that it does not work in bilingual website.
Do you know how to have additional colors in the second language please?
Thanks
Almudena