We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27167
    • 31 Posts
    Hi!
    Maxigallery is a fantastic extension, so first of all thanks a lot for it! wink

    My issue: Is it possible to have MaxiGallery in pictureview (so 1 image per page) but when I click on the image the lightbox prev/next links make it possible to scroll through all of the images in the open lightbox?

    Alternatively: Would it be possible to have the link to [+maxigallery.next_pic_url+] and [+maxigallery.previous_pic_url+] to be displayed in the lightbox additionally?

    I’d be grateful for an answer!

    Cheers,

    Siar
      • 7923
      • 4,213 Posts
      Yes, it’s possible, check maxigallery wiki page. There’s an tutorial for it. Also see the "read before posting thread". It contains a lot of useful information.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27167
        • 31 Posts
        This is something different than it is explained in the wiki and the FAQ (believe me - I read it all).

        I’m using pictureview so 1 picture per page is displayed with the previous/next links.

        Please see this screenshot:
        http://www.passion-works.net/screenshot.jpg

        So when the visitor clicks the image, it is shown in lightboxv2!

        If the user should be able to change pictures in the lightbox I would have to paste anchors with rel="lightbox[maxigallery]" BEFORE and AFTER the image that is currently shown in the page itself (do you understand where I’m heading?) -otherwise the previous/next links would’nt correspond to the order of the gallery itself!

        Sorry for my english, please tell me if it is still unclear!

        Cheers,

        Siar
          • 7923
          • 4,213 Posts
          I think lightbox checks the urls and shows prev and next picture in correct order, just try it based on the wiki tutorial. Instead of using the thumbnail view, use picture view.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 27167
            • 31 Posts
            Hi!
            OK, I checked this: The order of the pictures within the lightbox depends on the link position (with rel="lightbox[maxigallery]" in the document flow.
            So the whole problem is: To maintain the correct order inside the lightbox I need 2 dynamic MaxiGallery queries:
            1. One that queries all pictures from the start of the gallery to the one actually displayed
            2. and another one that queries all remaining pictures after the one that is currently displayed on the page (in PictureView).

            Have you got any idea how that could be realized?

            I’m fine with php, so if you could give me any hints I might work it out (is there a variable with the number of total images and the number of the image currently displayed?)

            I could contribute a tutorial to the wiki should I succeed!

            Cheers,

            Siar
              • 7923
              • 4,213 Posts
              I guess you could use the &limit and &offset parameters in the maxigallery call..

              Eg. do a custom pictureTpl and put two maxigallery calls in it.. the first one to get all links before the current picture:

              [!MaxiGallery? &limit=`[+maxigallery.counter+]`!] ..and add other parameters from your maxigallery call

              Then another one to get the picture urls after the current picture:

              [!MaxiGallery? &offset=`[+maxigallery.counter+]`!]

              Then do custom galleryOuterTpl and galleryPictureTpl templates to the above calls so that they only output the links to the images as lightbox wants it.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 14864
                • 24 Posts
                I have a similar problem. Did anyone ever get this to work?

                  • 14864
                  • 24 Posts
                  Quote from: doze at Mar 01, 2010, 02:31 PM

                  I guess you could use the &limit and &offset parameters in the maxigallery call..

                  Eg. do a custom pictureTpl and put two maxigallery calls in it.. the first one to get all links before the current picture:

                  [!MaxiGallery? &limit=`[+maxigallery.counter+]`!] ..and add other parameters from your maxigallery call

                  Then another one to get the picture urls after the current picture:

                  [!MaxiGallery? &offset=`[+maxigallery.counter+]`!]

                  Then do custom galleryOuterTpl and galleryPictureTpl templates to the above calls so that they only output the links to the images as lightbox wants it.

                  What would the tpls look like?
                    • 7923
                    • 4,213 Posts


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