We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    I have a setup of image and thumbnails on the same page. the image call is:
    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview` &pictureview_start_pos=`1` &disable_js_libs=`1`!]

    and the thumbs call is:
    [!MaxiGallery? &galleryPictureTpl=`mgGallerythumbs` &pageNumberTpl=`page_number_tpl` &max_thumb_size=`100x100` &gal_query_ids=`8,93` &galleryOuterTpl=`gal_outer_tpl` &disable_js_libs=`1` &pics_per_row=`10` &pics_per_page=`20` &js=`mgJs`&manageButtonTpl=`CODE:` &pictureview_start_pos=`1`!]
    


    The problem is that when the page loads the large image space is blank until I click a thumbnail and I want it to load the first image in the gallery instead of nothing.

    I saw in the wiki 2 parmeters &pictureview_start_pos and &pictureview_start_id which I think suppose to do just what I want if I understand correctly?
    Is there anything in my calls that conflict maybe?

    using the 0.6 test version on 0.9.6.3

    thanks in advance for any input.

      • 7923
      • 4,213 Posts
      do you have link to the page?

      have you checked the instructions in maxigallery wiki page? they don’t use pictureview display type.. but I think that should work too.. so that’s why I’d like to check it myself to see what’s going on.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27330
        • 884 Posts
        I followed the instructions under ’Picture and thumbnails on same page’ and it does mention &display=`pictureview` for the large image.
        the page is here:
        http://diamondpainting.net/modx/photo-gallery-test.php

        thanks for looking!
          • 27
          • 117 Posts
          sinbad, i had the same thing happening and added some template code, documented here: http://tinyurl.com/ohaf59.
            • 27330
            • 884 Posts
            thanks 0ad,
            I now see that I’m missing the &limit=`1` from my image call. even when added the first image isn’t loading.
              • 7923
              • 4,213 Posts
              could you pm me manager access so I could take a closer look.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 7923
                • 4,213 Posts
                You didn’t have &gal_query_ids parameter used in the snippet call for the picture view.. so that’s why it didn’t retrieve any pictures.

                There is a problem though when you have thumbnail paging enabled. It will now always get the first picture on that gallery, not the first picture from the thumbnail page. If you want to achieve that, you need to do a javascript that gets the first image in place on document load.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 27330
                  • 884 Posts
                  doze thank you very much! I really appreciate you taking the time to troubleshoot my mistakes. thanks again mate.