Slideshow and modal

My problem: I have a slideshow with dynamic slides. I have also a modal with detail region. How can I open the modal by clicking on a slide and in the modal content I see the dependent content of the slide?
Where can I add data-toggle and data-target in the slideshow tag?
What about “link” in “dynamic slides” of the slideshow panel?

Unfortunately it is not possible to control the detail region using the slides. You need a repeat region with records in it in order to do that.