We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi! Maybe i'm just blind but i could not find a solution on how to add prev. next links to my slimbox gallery. I use the Gallery Package with the Slimbox Plugin and just want to have prev next links...anynone a suggestion? Here is my gallery call:

    [[!Gallery? &album=`fotos` &loop=`1` &plugin=`slimbox` &limit=`32` &imageWidth=`800` imageHeight=`600` ]] 


    I'm using Modx Revo 2.2.4 with Gallery 1.5.2

    Thank you! [ed. note: flanger last edited this post 14 years, 3 months ago.]
      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
      • 36446
      • 184 Posts
      found something:
      changed /
      core/components/gallery/model/gallery/plugins/slimbox.class.php
       $scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox"';

      to
              $scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox[album]"';



        https://www.beautyislife-shop.de - premium make-up!
        https://www.topsterne.de - sell it here!
        ---------------------------------------------------------
        • 40349
        • 26 Posts
        Thank you for posting this. I am new to Modx and I have been struggling getting my gallery to work. You solved one of my many problems.
          Wild Eagle Design

          www.wildeagledesign.com
          • 31344
          • 12 Posts
          YES!, that works. I am curious about your explanation how you find this solution. In my point of view is this a bug. I found a issue on tracker http://tracker.modx.com/issues/8219 what can be correlated to this.
            • 35664
            • 4 Posts
            Thanks, it works for me too.
              • 40578
              • 10 Posts
              This almost helps me. smiley I want to have multiple and separate galleries on the same page. In order to do so, the rel value needs to be unique for each gallery. It would be nice to have it be lightbox[albumId]. Any idea on how to do that?
                • 40578
                • 10 Posts
                Nevermind... figured it out. Change the line to this:
                $scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox-' . $scriptProperties['album'] . '"';
                  • 37161
                  • 12 Posts
                  Cheers flanger and heather. This was just about to start annying me.
                    • 42697
                    • 16 Posts
                    Hi and thanks, this works!
                    I wonder isn't it simpler to set 'loop' => false, to "true"? Didn't work for me though.
                    I have many galleries in many projects and would like to default slimbox to loop true once and forever, and for any case smiley
                      it is all about jazz
                      • 42271
                      • 21 Posts
                      Thanx.
                      Got the multiple galleries up and running in Revo. Just changed [album] to [[+album]]
                      $scriptProperties['linkAttributes'] = $this->modx->getOption('linkAttributes',$scriptProperties,'').' rel="lightbox[[+album]]"';
                        To every Problem there is ModX Solutions