We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Apparently when galleries get too big, I get a strange behavior of MaxiGallery. I’ll try to explain.

    The webpage shows some source code of MG:

    [+maxigallery.embedtype:is=`smoothgallery`:then=` 


    Then follow the thumbnails of the pictures as an unorderd list with bullets. In the source code of the page, these thumbnails are embedded between the tags
    <div id="myGallery257"></div>

    where 257 is the id of the page.

    After the closing tag, I see

    `+]
    
    [+maxigallery.embedtype:isnot=`smoothgallery`:then=`
    	[+maxigallery.pictures:isnot=``:then=`


    which also is displayed on the webpage.

    Then the thumbnails are showed again, this time according to the template I used.

    After the closing tag of the div, I see

         `+]
    `+]


    which again is showed on the webpage (in this case before the thumbnails).

    Here’s a link to the page so you can see what I mean.

    I use this snippet call:
    [!MaxiGallery? &lang=`nl` &display=`embedded` &embedtype=`slimbox` &pics_in_a_row=`3` &max_thumb_size=`130` &max_pic_size=`0` &thumb_use_dropshadow=`1` &galleryPictureTpl=`mgGalleryPictureTpl`!]
    


    This is my template mgGalleryPictureTpl:
    <li>
    	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="<span class=&quote;pictureText&quote;><strong>[+maxigallery.picture.title:htmlent+]</strong><p>[+maxigallery.picture.descr:htmlent+]</p></span>"><img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" /></a>
    
    	[+maxigallery.picture.title:isnot=``:then=`<br /><span style="width: [+maxigallery.picture_width_thumb+]px;">[+maxigallery.picture.title:htmlent+]</span><br />`+]
    </li>


    I also tried the call without template and again with the standard template as found in assets/snippets/maxigallery/templates, but with the same result.



    I’ve experienced this problem before, but then I put the images in separate albums, which solved the problem.

    But this time I just want one big gallery, so how can I solve this problem?

    I use MaxiGallery 0.5.2 with modx 0.9.6.3.

    Any help with this problem will be greatly appreciated!
      • 20413
      • 2,877 Posts
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 34162
        • 1 Posts
        Ahhh... thank you mrhaw. That solved the problem! laugh

        Already searched the forums, but didn’t find that topic. embarrassed

        Because I need to use pagination now, this leads to another question: how can I get the pagenumbers both on top and bottom?
          • 20413
          • 2,877 Posts
          Thank doze! Who’s support for MG rocks.

          Wonder if its just adding additional links down the bottom
          with

          [+maxigallery.previous_pic_url+]
          [+maxigallery.next_pic_url+]

          inside a pictureTpl

            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 7923
            • 4,213 Posts
            I guess WeBe is talking about thumbnail page numbers.. but they are in template too.. so just duplicate it to the bottom of the thumbnails in the template.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 34162
              • 1 Posts
              @mrhaw: I agree, doze’s support voor MG rocks indeed. But you set me on the right track, so thank you for that.

              @doze: Yes, I mean the thumbnail page numbers. The template to use is the galleryOuterTpl, so everything is working fine now smiley

              I really love this snippet. It’s really great to work with cool

              Thank you both!