We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I have a news website (www.infosalvo.com) that uses a TV for featured posts. Those featured posts then make their way to the home page rotating banner. Works fine, for the most part. My featured items get featured. However, when it hits the last item, the banner just freezes up (white area) and then recycles to the first post.

    Basically the last banner isn't showing up or is causing a freeze.

    The banner/video; using nivo slider (for reference), is in a chunk [[$primary-banner]]

    In primary-banner lives [[$featured-banner]]

    <div id="banner-container">
    <div id="hero-banners">
        <div class="left">
            [[$featured-banner]]
        </div>
        <div class="right">
            <iframe width="335" height="217" src="[[*videoURL]]" frameborder="0" allowfullsc
            reen>            
            </iframe>
            <div id="videoDesc">
                <h4>[[*videoDescTitle]]</h4>
                <p>[[*videoDesc]]</p>
            </div>
        </div>
    </div><!-- /hero banner -->
    </div>


    In featured-banner lives the nivo slider slides and captions

    <div id="featured-banners" class="theme-default">
        <div id="slider" class="nivoSlider">
            [[!getResources?
                &parents=`19,20,21,22,23,24,18`
                &tpl=`slidesTpl`
                &includeTVs=`1` 
                &processTVs=`1`
                &tvPrefix=`feat.`
                &tvFilters=`feature==Yes`
                &showHidden=`1`
                &sortby=`{"publishedon":"DESC","createdon":"ASC"}`
            ]]
            <div class="arrow"></div>
            <div id="controlNavBg"></div>
        </div><!-- /slider -->
        
        [[!getResources?
            &parents=`19,20,21,22,23,24,18`
            &tpl=`sliderTpl`
            &includeTvs=`1`
            &processTvs=`1`
            &tvPrefix=``
            &tvFilters=`feature==Yes`
            &showHidden=`1`
            &sortby=`{"publishedon":"DESC","createdon":"ASC"}`
        ]]
    
    </div><!-- /featured banners -->


    Any ideas as to why it freezes up? You can see it in action here: infosalvo.com
      Sal Baldovinos
      SEO & DIGITAL MARKETING

      ARIEL DIGITAL | Maximize Your Potential
      www.arieldigitalmarketing.com
    • Also, if I set a limit or just leave it as default, it always add 2...odd?
        Sal Baldovinos
        SEO & DIGITAL MARKETING

        ARIEL DIGITAL | Maximize Your Potential
        www.arieldigitalmarketing.com
      • Anyone ever experience this?
          Sal Baldovinos
          SEO & DIGITAL MARKETING

          ARIEL DIGITAL | Maximize Your Potential
          www.arieldigitalmarketing.com
          • 33968
          • 863 Posts
          getResources appears to be working correctly; it returns 5 list items but the slideshow script thinks there are more.

          Apparently there are some broken <a> tags in your markup, I would bet that's part of the problem:
          http://validator.w3.org/check?uri=http%3A%2F%2Fwww.infosalvo.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

          • Sal can you post the code for each tpl? I want to see what the second getResources call is doing I think it's doing the captions for each image, your supposed to only have one div for captions and nivo will replace the text inside of it.

            If you post your tpls I can have a better idea so I can compare it with my NivoGallery plugin to see what might be the issue.

            Hit me up on skype later today so we can talk.
              Benjamin Marte
              Interactive Media Developer
              Follow Me on Twitter | Visit my site | Learn MODX
            • sliderTpl
              <div class="hero_single" id="[[+alias]]">
                  <h3>[[+pagetitle]]</h3>
                  <p><a href="[[~[[+id]]]]">Read Full Story »</a></p>
              </div><!-- /slider -->


              slidesTpl
              <a href="[[~[[+id]]]]"><img src="[[+feat.entry-banner:phpthumbof=`w=655&h=292&zc=1`]]" data-orignal="[[+feat.entry-banner:phpthumbof=`w=655&h=292&zc=1`]]" alt="[[+pagetitle]]" title="#[[+alias]]" /></a>
                Sal Baldovinos
                SEO & DIGITAL MARKETING

                ARIEL DIGITAL | Maximize Your Potential
                www.arieldigitalmarketing.com