The best place to put a Carousel is in the Featured zone on TheHomepage layer. Create an HTML Widget in the zone and use the following code:

// multi-line
<script src="/Themes/Bootstrap/Scripts/bootstrap-carousel"></script>
<div id="myCarousel" class="carousel slide">
  <!-- Carousel items -->
  <div class="carousel-inner">
    <div class="active item">
    </div>
    <div class="item">
    </div>
    <div class="item">
    </div>
  </div>
  <!-- Carousel nav -->
  <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
  <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>
<script type="text/javascript">
    $(".carousel").carousel();
</script>


Put whatever contents you want within each item div container. For example:

// multi-line
<div class="item">
    <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
    <div class="carousel-caption">
        <h4>First Thumbnail label</h4>
        <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
    </div>
</div>

Last edited Nov 1, 2012 at 11:11 PM by psenechal, version 2

Comments

No comments yet.