We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    So I've got this ~kind of~ working:

    The carousel chunk displayed on the page:
    [[!Gallery? 
      &limit=`0` 
      &album=`[[*vehiclegallery]]` 
      &toPlaceholder=`gallery`
      &thumbTpl=`vehicleCarouselSlideTpl`
      ]]
    
    [[!Gallery? 
      &limit=`0` 
      &album=`[[*vehiclegallery]]` 
      &toPlaceholder=`thumbs`
      &thumbTpl=`vehicleCarouselThumbTpl`
      ]]
    
    <div class="row">
    
      <div id="carousel-vehicle" class="carousel slide" data-ride="carousel">
      
    	<div class="carousel-inner">
      
    	  [[+gallery]]
      
    	</div>
      
    	<a class="left carousel-control" href="#carousel-vehicle" role="button" data-slide="prev">
    	  <span class="glyphicon glyphicon-chevron-left"></span>
    	</a>
    	<a class="right carousel-control" href="#carousel-vehicle" role="button" data-slide="next">
    	  <span class="glyphicon glyphicon-chevron-right"></span>
    	</a>
      
      </div>
    
    </div>
    
    <div class="row carousel-indicators">
    	[[+thumbs]]
    </div>




    vehicleCarouselThumbTpl:
    <div class="col-sm-1" data-target="#carousel-vehicle" data-slide-to="[[+idx]]" class="[[+idx:eq=`1`:then=` active`]]">
    <img class="[[+imgCls]] img-responsive" src="[[+thumbnail]]" alt="[[+name]]" />
    </div>




    vehicleCarouselSlideTpl:
    <div class="item [[+idx:eq=`1`:then=` active`]]">
    <img src="[[+image_absolute]]" class="img-responsive" />
    </div>





    So this does work, well in fact, but can you guess what's reeeeaallllly bugging me?


    Right! exactly, I have to call Gallery twice [shudders!] to get the thumb output.


    Any thoughts on how to get around this?
      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525