We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • ok so I had a template I went to upgrade and make a rotating randomized chunk on a home page.

    I replaced a static chunk with a ditto call that would cycle through resources that just contained divs

    so my code before:

    <div id="homebranding"><img src="assets/images/logo-tag.png" alt="Forever-families" /></div>
    <div id="homerightcol">
    <div id="slideshow">
     [!MaxiGallery?  &display=`embedded` &embedtype=`smoothgallery` &keep_bigimg=`1`  &smoothgallery_id=`1`  &smoothgallery_height=`360` &smoothgallery_width=`465` &smoothgallery_delay=`6000` &smoothgallery_showInfopane=`false` &smoothgallery_timed=`true` &manage_target=`30` &view_gallery=`30` &smoothgallery_showCarousel=`false` &smoothgallery_embedLinks=`true` &smoothgallery_showArrows=`false` &gal_id=`1`!] 
    
    
    
    </div>
    <div class="biggoldbox">
    {{homebookbox}}
    
    <div class="column left20">{{download}}</div>
    <div class="column ">{{emailnews}}</div>
    <br class="clear" />
    </div>
    <br class="clear" />


    and my code after was


    <div id="homebranding"><img src="assets/images/logo-tag.png" alt="Forever-families" /></div>
    <div id="homerightcol">
    <div id="slideshow">
     [!MaxiGallery?  &display=`embedded` &embedtype=`smoothgallery` &keep_bigimg=`1`  &smoothgallery_id=`1`  &smoothgallery_height=`360` &smoothgallery_width=`465` &smoothgallery_delay=`6000` &smoothgallery_showInfopane=`false` &smoothgallery_timed=`true` &manage_target=`30` &view_gallery=`30` &smoothgallery_showCarousel=`false` &smoothgallery_embedLinks=`true` &smoothgallery_showArrows=`false` &gal_id=`1`!] 
    
    
    
    </div>
    <div class="biggoldbox">
    [[Ditto? &parents=`164` &tpl=`tplBooks` &orderBy=`menuindex` &display=`1` &randomize=`1` ]]
    
    <div class="column left20">{{download}}</div>
    <div class="column ">{{emailnews}}</div>
    <br class="clear" />
    </div>
    <br class="clear" />


    but after I added the ditto call my MaxiGallery stopped working. I upgraded 1.14 to 1.15 and went through every step in maxigallery to make sure it wasnt me accidentally doing something odd. The manage pictures area worked fine. It was just the front end, the preloading gif showed but the pictures never loaded then in the console we have

    TypeError: this.galleryData[0] is undefined
    imgPreloader.src = this.galleryData[0].image;
    	jd.gallery.js (line 266, col 3)



    I've put the old page template back until I can resolve the conflict. But my test page is here

    http://www.forever-families.com/duplicate-of-home.html

    it has the error.

    Thoughts? suggestions?
      ________

      Anne
      Toad-in-Chief
      Red Toad Media - Web Design, Louisville KY
      Hear me tweet: http://www.twitter.com/redtoadmedia
      "Bring on the imperialistic condiments." - Rory Gilmore