Hi Everyone,
First of all Couch is amazing!
In my homepage, i have a slider which came with template that I bought.
Originally HTML version is like this:
As you expect, I tried to implement it to Couch with repeatable function. class=item sections are okay, but Indicators part is not working.
You can see my code below:
Hope you can help.
Thank you.
First of all Couch is amazing!

In my homepage, i have a slider which came with template that I bought.
Originally HTML version is like this:
- Code: Select all
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#home_carousel" data-slide-to="0" class="active"></li>
<li data-target="#home_carousel" data-slide-to="1"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="images/2.png" alt="" />
<div class="carousel-caption">
<h2>Title</h2>
<p>Desc.</p>
</div>
</div>
<div class="item">
<img src="images/3.png" alt="" />
<div class="carousel-caption">
<h2>Title</h2>
<p>Desc.</p>
</div>
</div>
</div>
As you expect, I tried to implement it to Couch with repeatable function. class=item sections are okay, but Indicators part is not working.
You can see my code below:
- Code: Select all
<!-- Indicators -->
<ol class="carousel-indicators">
<cms:show_repeatable 'slider' >
<?php $count = 0; $total = '<cms:show k_total_records />';
while( $count <= $total ) {
echo '<li data-target="#home_carousel" data-slide-to="$count"></li>';
$count++;
}
?>
</cms:show_repeatable>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<cms:show_repeatable 'slider' >
<div class="item <cms:show ilkslide />">
<img src="<cms:show resim />" alt="" />
<div class="carousel-caption">
<h2><cms:show baslik /></h2>
<p><cms:show detay /></p>
</div>
</div>
</cms:show_repeatable>
</div>
Hope you can help.
Thank you.