octobercms: bootstrap carousel

{% set id = random(999999) %} <div class=”carousel carousel-{{id}} slide ock-carousel” data-ride=”carousel” {% if interval is defined %}data-interval=”{{interval}}”{% endif %}> {% if indicator is not defined or indicator == true %} <ol class=”carousel-indicators”> {% for bild in bilder %} <li data-target=”.carousel-{{id}}” data-slide-to=”{{ loop.index0 }}” class=”{% if loop.index0 == 0 %}active{% Read more…