I have a Collection List with a list of hotels.
On a page, I show short info (photo and name) about all hotels from my collection list. By clicking on the hotel photo I want to show pop-up with a video about the corresponding hotel (I made that using html-embed because my video locates on my server).
I added Collection List to the page, put photo+hotel name inside Div Block.
But when I add a mouse click on the photo of any hotel, this interaction applies to photos (list items) of other hotels from my list. How can I open different popups when I click on different items (photos) from my collection list?
Once you’ll have understood this principle, you’ll understand what you can achieve with IX by using the actions limitations, and how your structure makes an IX possible. For IX targeting Collection List Items, you have to think the structure ahead.
Amazing! It works! Thank you so much!
Just one trifle left — is it possible to keep that video autoplayed? I forced it to autoplay using a small js-code for the whole site, but after the last changes, it doesn’t work. It is not so important, but if there is a quick solution it will great.
Okay… logically, you should alway use some sort of JS code or a Youtube API to play videos when there’s multiple of them, unless your page will become slow. Using code or an API allows you to use only one player that’s repeated for all the videos, and to handle play, stop, loop etc… Especially, that’s useful to prevent a video continuing playing when another is started.
So the best practice in your position is to use more code, not less code, to make sure your video behave as the user expect them to and to keep your page as light as it should be.
Can’t help you further on this as I am not a coder.