Sightly - Expression in Expression
Hi all,
I have four images 'abc-820x462-en.jpg', 'abc-590x394-en.jpg', 'abc-820x462-fr.jpg' and 'abc-590x394-fr.jpg' of different dimensions which are to be displayed as per the dimensions selected and also as per the language of the page.
We are able to select the image as per the dimension :
<img src="${video.imageSrc || (video.videoSize=='16:9'?'/is/image/content/dam/thdc/common/abc-820x462-en.jpg':'/is/image/content/dam/thdc/common/abc-590x394-en.jpg')}"
alt="${video.imageMetadata.alt || '' }"/>
Not able to select the image using the language (en/fr)
Can we implement the sightly expression in the above expression again to select the language as well (abc-820x462-en.jpg or abc-820x462-fr.jpg)