We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7127
    • 28 Posts
    Hi,
    you solved a problem I had yesterday, but I’ve got a new one.
    I made a chunk containing this code:
    <div>[!MaxiGallery? &display=`childgalleries` &childgalleries_ids=`49`  &childgalleries_limit=`3` &order_by=`random` &limit=`3` &manage=`0` !]
    </div>


    then I called it in the template I use in a div-container. So far so good.

    It works perfectly if you open pages without a gallery. It shows 3 random pics of all galleries. If you open a gallery, it seems to double the call. It shows the random-pics of the other galleries as in the normal pages "and" shows the open gallery with the limitation of 3 pics.


    I don’t want that, what can I do about this.
    thanks for thinking laugh
      • 7923
      • 4,213 Posts
      I splitted this post as I don’t think it relates to the other thread..

      Anyways, what kind of snippet call setup you have on the gallery pages where the galleries are showing twice?

      Do you have 2 calls on the page? Is the site online? link would help..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 7127
        • 28 Posts
        Hi,

        it seemed to me that I solved the problem by deleting code from: assets/snippets/maxigallery/templates/galleryoutertpl.html
        lines 48-61
        [+maxigallery.embedtype:is=`smoothgallery`:then=`
        <div id="myGallery[+maxigallery.config.smoothgallery_id:isnot=`-1`:then=`[+maxigallery.config.smoothgallery_id+]`:else=`[+maxigallery.pageinfo.id+]`+]">
        [+maxigallery.pictures+]
        </div>
        `+]

        and
        [+maxigallery.embedtype:isnot=`smoothgallery`:then=`
        [+maxigallery.pictures:isnot=``:then=`
        <div class="thumbscontainer">
        <ul class="thumbs">
        [+maxigallery.pictures+]
        </ul>
        </div>
        `+]

        put the code of galleryoutertpl.html without the lines in a chunk and call it with &galleryOuterTpl=`chunkname`

        thank you, for your offer