As a Kirby newbie, many questions arise. Each project is too individual to find exact solutions.
My question: I use a carousel slider. Reading the images from the folder works perfectly. For the slider to work, only the first DIV box from the carousel must contain the class “active”:
<div class="carousel-item active"><img src="<?= $file->url() ?>" alt="" /></div>
How do I insert the variable that only the first DIV contains this class?
Thanks a lot for your support!