I am using the showcase-snippet to load a thumbnail for each of my projects into a grid set up on my homepage. Now, I would like to make each thumbnail clickable and let a slideshow with all the respective project’s images appear on top of my entire homepage so the user can cycle through the images (but without an actual new page opening up). I’m really stuck with this since I don’t know how to set up the slideshow and make it load the images of the individual project that the user has clicked on.
Here’s a basic graphic representation of what I would like to accomplish using kirby as well as the code of my showcase snippet which loads the images onto the homepage:
(the showcase-snippet loading the images)
<?php
$projects = page('projects')->children()->visible();
if(isset($limit)) $projects = $projects->limit($limit);
?>
<div class="flex-grid-thirds">
<?php foreach($projects as $project): ?>
<div class="col">
<a href="#" class="project-title">
<?= $project->title()->html() ?>
</a>
<?php if($image = $project->images()->sortBy('sort', 'asc')->first()): $thumb = $image; ?>
<a href="#" target="blank" class="showcase-link">
<img src="<?= $thumb->url() ?>" alt="Thumbnail for <?= $project->title()->html() ?>" class="" />
</a>
<?php endif ?>
</div>
<?php endforeach ?>
</div>
(graphic representation of what I would like to do)
Again, I’ll be super grateful to anyone who can help me out. Much thanks in advance.