Hi, i’m working on a web portfolio right new and decided to use kirby, so i’m pretty new to all the php language.
So this would be the structure of the site :
The home page is showing the first images of each projets, then if you click on one project,
a slideshow would appear to show the rest of the images of the project you cliked.
I know that structure comprehension for kirby is the key but i read topics on slideshow issues and i didn’t found a solution,I didn’t understand all the kirby/php logic yet
For now, i have succeeded to display the home page with the first images of each projet like this :
<ul class="projects-wrap">
<?php foreach($page->children()->listed() as $home): ?>
<li>
<a href="<?= $home->url()?>">
<figure class="slide" >
<?= $home->image()->crop(750,1000)?>
</figure>
</a>
</li>
<?php endforeach?>
And the structure folder is “content/home/project-1/1.jpg” (for one project)
But now i’m wondering if i have to separate the preview image to the rest of the images for each project, or the keep them in one folder and just call the right now with php…
I will take any advice or help,
Thanks