How to Fix the Responsive Gallery in Ti33b if the slide timing setting is not working.
- Navigate to the Responsive.ascx file via FTP (siteroot/Views/ModuleTypes/Gallery)
- Add the following line of code after line 1: <% int interval = Model.SlideshowWaitTime*1000; %>
- In the opening div for the slider (it has an id="carousel") add the followingafter the data-ride="carousel" before the close of the tag: data-interval="<%= interval %>
- <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TitaniumModules.Gallery.Models.Gallery>" %>
- <% int interval = Model.SlideshowWaitTime*1000; %>
- <div id="carousel" class="carousel slide" data-ride="carousel" data-interval="<%= interval %>">
- <div class="carousel-inner" role="listbox">
- <%
- int slidecounter = 0;
- foreach (TitaniumModules.Gallery.Models.GalleryItem item in Model.GalleryItems)
- {
- %>
- <div title="<%=item.Title%>" class="item <% if( slidecounter == 0 ){ %>active<% } %>">
- <a href="<%=item.ClickUrl %>">
- <img class="img-responsive center-block" src="<%=Url.GetFileURL(item.FileID.ToString()) %>" alt="<%=item.AltText %>">
- </a>
- <div class="carousel-caption">
- <%=item.Text %>
- </div>
- </div>
- <%
- slidecounter++;
- }
- %>
- </div>
- <%if (Model.GalleryItems.Count > 1){ %>
- <a class="left carousel-control" href="#carousel" role="button" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="right carousel-control" href="#carousel" role="button" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- <%} %>
- </div>