Slideshow problem
11 posts by 3 authors in: Forums > CMS Builder
Last Post: December 1, 2014 (RSS)
By CommonSenseDesign - December 1, 2014 - edited: December 2, 2014
Hi, Claire.
All working perfectly, thank you. http://www.mountainoakcheese.com/
For anyone who's interested, here is the complete code, as provided by Claire.
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<?php foreach ($homepageRecord['slideshow'] as $index => $upload): ?>
<li data-target="#carousel-example-generic" data-slide-to="<?php echo $index; ?>"<?php echo $index == 0 ? ' class="active"' : ''; ?>></li>
<?php endforeach; ?>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<?php foreach ($homepageRecord['slideshow'] as $index => $upload): ?>
<div class="item<?php echo $index == 0 ? ' active' : ''; ?>">
<img src="<?php echo $upload['urlPath'] ?>" alt="">
<div class="carousel-caption">
<div class="jumbotron__container">
<h2 class="jumbotron__subtitle">
<?php echo htmlencode($upload['info1']) ?>
</h2>
<h1 class="jumbotron__title">
<?php echo htmlencode($upload['info2']) ?>
</h1>
<a class="btn btn-primary" href="<?php echo htmlencode($upload['info3']) ?>">More details</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
I really appreciate your patience and help with this, Claire.
Cheers,
Nigel