Can I use Two and more slideshows in the article
  • Slideshows are crushed if i use two slideshows in the article. There is a message "Fatal error: Could not extract a stage height from the CSS. Traced height: 0px." in the first slideshow.
    I use slideshow template from Quetzal:
    {{ foreach $gimme->article->slideshows as $slideshow }}
    <h1 class="full-width">{{ $gimme->article->name }}</h1>
              <h6>{{ $slideshow->headline }}</h6>
              <div id="gallery">
                  {{ assign var="style" value='true' }}
    {{ assign var="counter" value=0 }}             
    {{ foreach $slideshow->items as $item }}     
    {{ assign var="counter" value=$counter+1 }}
                  <img src="{{ $item->image->src }}" data-title="{{ $item->caption }}" />               
    {{ /foreach }}

              </div>
              <!-- Gallery vendor plugin -->
              <script>
                Galleria.loadTheme('{{ url static_file='_js/vendor/galleria/themes/classic/galleria.classic.min.js'}}');
                Galleria.run('#gallery');
              </script>
    {{foreachelse}}
                {{ include file="_tpl/img/img_300x300.tpl"}}
                <h1>{{ $gimme->article->name }}</h1>
    {{ /foreach }}

    Post edited by Andrei S. at 2015-02-25 04:24:11
  • 2 Comments sorted by
  • You will get more than one div called #gallery, maybe that is the problem? Have you tried changing the id to class and running Galleria on .gallery instead? If that doesn't work, maybe you have to give each div their own id and run the javascript on each of those? 
  • Thank you for response.
    Have you tried changing the id to class and
    running Galleria on .gallery instead?
    specify, What and where is it necessary to change?
    Post edited by Andrei S. at 2015-02-26 05:18:28