Slider Section set Active Controls

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 24, 2014   (RSS)

By claire - September 24, 2014

Hey Craig, I'm not sure what you're asking here, but this is how it should probably work:

<div id="home_testimonial" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php foreach ($testimonialsRecords as $idx => $record): ?>
<li data-target="#home_testimonial" data-slide-to="<?php echo $idx; ?>"<?php if($idx == 0) : ?> class="active"<?php endif; ?>></li>
<?php endforeach ?>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner">
<?php foreach ($testimonialsRecords as $idx => $record): ?>
<div class="item<?php if($idx == 0) : ?> active<?php endif; ?>">
<p><?php echo $record['content']; ?></p>
</div>
<?php endforeach ?>
</div>
</div>

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By KCMedia - September 24, 2014

thanks Claire

that was perfect and works great cheers.

Thanks



Craig

KC Media Solutions

www.kcmedia.biz