By mihailnovak on
Drupal 8.3
Im sorry for my bad English.
I created a image field (unlimited). In my content type -> Manage display, i chose, Link image to file. And the photos are opened in a new window. How do add this (data-uk-lightbox) attribute to the link?
<a href="path" data-uk-lightbox title="">
Thanks in advance!!!
Comments
add to twig template
If you want to add class information to an image, you will need to put that markup in the .twig template for the content type.
spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...
Thanks for the answer, but
Thanks for the answer, but this (data-uk-lightbox) does not css class. Look this https://getuikit.com/v2/docs/lightbox.html.
In field--node--field_gallery--mycontent.html.twig
This prints the entire array with the links
Once again, thank you!!!