@derKaiser
You're very close now. There's just one thing you didn't understand. Everything inside the repeatable tag gets repeated for each repeatable item. That's why you see the first and second slide overlap. Really you have 4 slides. 2 visible, 2 hidden because you used the repeatable tag again for each slide.
Go ahead. Take a look. If you look at the page source in your browser you'll see how the generated page looks. You'll see:
Let's start by getting rid of the extra slides and moving the repeatable tag to surround the entire repeating code.
Good. But your slider code is not as simple as my example. Each slide has a different id and class. Luckily, Couch can handle this using the <cms:if> tag and the repeatable tag's counter.
Try it and see if that works.
I've gotta run, but the thumbnail is easy. Take a look at the thumbnail tag. It doesn't show in the admin panel. You just use it on the front end. http://www.couchcms.com/docs/tags-refer ... ail-1.html
You're very close now. There's just one thing you didn't understand. Everything inside the repeatable tag gets repeated for each repeatable item. That's why you see the first and second slide overlap. Really you have 4 slides. 2 visible, 2 hidden because you used the repeatable tag again for each slide.
Go ahead. Take a look. If you look at the page source in your browser you'll see how the generated page looks. You'll see:
- Code: Select all
<div id="fragment-1" class="ui-tabs-panel" style="">
<img src="path/to/image1.jpg" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#">Text for slide 1</a></h2>
<p>Caption 1</p>
</div> <!-- div info -->
<img src="path/to/image2.jpg" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#">Text for slide 2</a></h2>
<p>Caption 2</p>
</div> <!-- div info -->
</div> <!-- div fragment-1 -->
<!-- SLIDER SECOND -->
<div id="fragment-2" class="ui-tabs-panel ui-tabs-hide" style="">
<img src="path/to/image1.jpg" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#">Text for slide 1</a></h2>
<p>Caption 1</p>
</div> <!-- div info -->
<img src="path/to/image2.jpg" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#">Text for slide 2</a></h2>
<p>Caption 2</p>
</div> <!-- div info -->
</div> <!-- div fragment-2 -->
Let's start by getting rid of the extra slides and moving the repeatable tag to surround the entire repeating code.
- Code: Select all
<cms:show_repeatable "slider">
<div id="fragment-1" class="ui-tabs-panel" style="">
<img src="<cms:show slider_image/>" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#"><cms:show slider_text /></a></h2>
<p><cms:show slider_caption /></p>
</div> <!-- div info -->
</div> <!-- div fragment-1 -->
</cms:show_repeatable>
Good. But your slider code is not as simple as my example. Each slide has a different id and class. Luckily, Couch can handle this using the <cms:if> tag and the repeatable tag's counter.
- Code: Select all
<cms:show_repeatable "slider">
<div id="fragment-<cms:show k_count />" class="ui-tabs-panel<cms:if k_count gt '1'> ui-tabs-hide</cms:if>" style="">
<img src="<cms:show slider_image/>" alt="slider-slika1" width="670px"; height="250px"; />
<div class="info" >
<h2><a href="#"><cms:show slider_text /></a></h2>
<p><cms:show slider_caption /></p>
</div> <!-- div info -->
</div> <!-- div fragment-<cms:show k_count /> -->
</cms:show_repeatable>
Try it and see if that works.
I've gotta run, but the thumbnail is easy. Take a look at the thumbnail tag. It doesn't show in the admin panel. You just use it on the front end. http://www.couchcms.com/docs/tags-refer ... ail-1.html