We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31978
    • 39 Posts
    Hi!

    I have some trouble with smoothgallery view with childgalleries.
    I have two galleries (1 and 2) in parent folder with ID=73.

    On some page i called MG with parameters:

    [!mg? &display=`childgalleries` &childembedtype=`smoothgallery` &childgalleries_ids=`73` &order_by=`date` &order_direction=`ASC`&smoothgallery_showInfopane=`false` &smoothgallery_timed=`true` &smoothgallery_delay=`3000` &max_thumb_size=`330x330` &smoothgallery_height=`330` &smoothgallery_showCarousel=`false` &smoothgallery_width=`330` &smoothgallery_showArrows=`false` &limit=`30` &childgalleryTpl=`childgallery`!]

    I want to see two slideshows on page from child galleries, but i have only two static images.

    When i wrong?

    Thankz smiley
      Когда есть желание - появляются возможности. Когда нет желания - появляются причины.
      • 7923
      • 4,213 Posts
      Do you have link to the page?

      Is there any javascript errors visible?

      What is the content of childgallery chunk?

      Does the smoothgallery initialize at all? What do you mean by "only two static images"?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 31978
        • 39 Posts
        Quote from: doze at Sep 02, 2009, 09:12 AM

        Do you have link to the page?

        Is there any javascript errors visible?

        What is the content of childgallery chunk?

        Does the smoothgallery initialize at all? What do you mean by "only two static images"?

        Link to the page:
        http://artstroi.org/index.php?id=73

        no errors visible.

        Content of childgallery chunk:

        <li>
        	<a href="[+maxigallery.childurl+]">
        		<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.strings.go_to_gallery+]" alt="[+maxigallery.strings.go_to_gallery+]" />
        	</a>
        </li>
        


        Does the smoothgallery initialize at all? - I dont understant, what you mean? I just call MG in page smiley
        Only two static images - see the link; i want two slideshows, but have only two first images from child galleries smiley

        Two slideshows - like slideshow on this page:

        http://artstroi.org/index.php?id=74
          Когда есть желание - появляются возможности. Когда нет желания - появляются причины.
          • 7923
          • 4,213 Posts
          Do not use custom childgallery template. The html code need to be specific for the smoothgallery javascript.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 31978
            • 39 Posts
            Specific?
            I need just remove template parameter from MG call?
            If i remove this parameter, i see just images from galleries - all images:

            http://artstroi.org/index.php?id=73
              Когда есть желание - появляются возможности. Когда нет желания - появляются причины.
              • 7923
              • 4,213 Posts
              Yes, the html seems to be ok now. It’s supposed to look like that. The smoothgallery javascript should go through the html and generate the js gallery, but it’s not initialized.

              For some reason, the regSmoothGalleryCSS() function is not running in your case and it’s not adding the smoothgallery javascript initialization code to the html source.

              What version are you using? If not using the v0.6 test version, update to that one.

              Also do you have multiple snippet calls on that document? Try first with just one simple call, eg:
              [!mg? &display=`childgalleries` &childembedtype=`smoothgallery` &childgalleries_ids=`73` &smoothgallery_id=`galleryid1`!]
              



                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 31978
                • 39 Posts
                Quote from: doze at Sep 02, 2009, 11:58 AM

                Yes, the html seems to be ok now. It’s supposed to look like that. The smoothgallery javascript should go through the html and generate the js gallery, but it’s not initialized.

                For some reason, the regSmoothGalleryCSS() function is not running in your case and it’s not adding the smoothgallery javascript initialization code to the html source.

                What version are you using? If not using the v0.6 test version, update to that one.

                Also do you have multiple snippet calls on that document? Try first with just one simple call, eg:
                [!mg? &display=`childgalleries` &childembedtype=`smoothgallery` &childgalleries_ids=`73` &smoothgallery_id=`galleryid1`!]
                



                Version 6.0
                No multiple snippet calls on this page.
                Your simple call dont work too:

                http://artstroi.org/index.php?id=73
                  Когда есть желание - появляются возможности. Когда нет желания - появляются причины.
                  • 31978
                  • 39 Posts
                  Thankz a lot, i find alternative solution, with two calls of MG with gal_query_ids and different &smoothgallery_id, like that:

                  [!mg? &display=`embedded` &gal_query_ids=`80`&embedtype=`smoothgallery` &smoothgallery_showInfopane=`false` &smoothgallery_timed=`true` &smoothgallery_delay=`3000` &max_thumb_size=`330x330` &smoothgallery_height=`330` &smoothgallery_showCarousel=`false` &smoothgallery_width=`330` &smoothgallery_showArrows=`false` &childgalleryTpl=`childgallery` &smoothgallery_id=`101`!]
                  
                  [!mg? &display=`embedded` &gal_query_ids=`81` &embedtype=`smoothgallery` &smoothgallery_showInfopane=`false` &smoothgallery_timed=`true` &smoothgallery_delay=`3000` &max_thumb_size=`330x330` &smoothgallery_height=`330` &smoothgallery_showCarousel=`false` &smoothgallery_width=`330` &smoothgallery_showArrows=`false` &childgalleryTpl=`childgallery` &smoothgallery_id=`102`!]
                  
                    Когда есть желание - появляются возможности. Когда нет желания - появляются причины.
                    • 11186
                    • 38 Posts
                    I too have the same problem.

                    I have a single call:
                    [!MaxiGallery? &display=`childgalleries` &childembedtype=`smoothgallery` &childgalleries_ids=`all` &smoothgallery_id=`galleryid1`  &manageButtonTpl=`@CODE:` &smoothgallery_width=`378` &smoothgallery_height=`288`!]


                    This call returns the html properly, but for some reason doesn’t run regClientCSS or regClientScript. Although I’m not seeing galleryid1 as smoothgallery_id set above.

                    However, when I go to one of the childgallery pages, the childgallery itself works fine with this call:
                    [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_delay=`15000` &order_by=`pos` &smoothgallery_carouselPreloader=`true` &manageButtonTpl=`@CODE:` &smoothgallery_timed=`true` &smoothgallery_width=`378` &smoothgallery_height=`288`!]


                    It seems to run regClientCSS and regClientScript fine. Anyone else seeing this with sg?

                    EDIT - This with v.06 test
                      • 7923
                      • 4,213 Posts
                      yeah... for some reason when &childembedtype=`smoothgallery` the regSmoothGalleryCSS() function is not run properly and the smoothgallery initialization code is not added to the document. Would need some debugging to be done.


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."