Bootstrap 4's Carousel requires you to add an 'active' class to the first item you wish to display. This has been a bit of a pain for me working with getResources.
I was wondering if there was a way to either tell getResources to use a different .tpl for its first instance, or if it's possible to put an if statement on the tpl, eg:
<?php if (this is first instance) {
echo '<div class="active carousel__slide">';
}
else {
echo '<div class="carousel__slide">';
} ?>
I know I could do this in JQuery, I'm just curious as to know if there are other options.