We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Hi thanks for this great plugin!

    It is working, but now I want to include a lightbox (ThickBox 3.1).
    All seems to work be the [[+image]] variable gives me a link to an image like this:

    mySite/assets/components/gallery/connector.php?action=web/phpthumb&w=500&h=500&zc=0&far=0&src=%2FmySite%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F2010%2F11%2Ftricode_01.jpg

    This works when I open this link in a browser, but not when it is loaded in the lightbox.

    Is there any way to get a clean link to the image? (like: mySite/assets/components/gallery/tricode_01.jpg)


    EDIT:

    Nevermind http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ is working great!

    My code:

    CALL
    [[!Gallery? &album=`1` &toPlaceholder=`gallery` &tpl=`galItemThumb`]]
    <h1><a href="[[~[[*id]] &galAlbum=`[[+gallery.id]]`]]">[[+gallery.name]]</a></h1>
    <p>[[+gallery.description]]</p>
    
    [[+gallery]]


    CHUNK galItemThumb
    <div class="[[+cls]]">
        <a href="[[+image]]" rel="prettyPhoto[[[+album]]]">
            <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
        </a>
    </div>
      MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
      DESIGNfromWITHIN, MPThemes and Any Screen Size
      Follow me on Twitter | Read my blog | My code on GitHub
      • 22827
      • 129 Posts
      Hello,

      I am using Gallery to display an album.. this is one of those horizontal scroll type albums, where each image is the same height, but has different widths.

      In this case, the images are already all 500px high, so I have thumbHeight set to 500, so there isn’t actually any scaling that needs to be done, I am displaying the images at their actual dimensions.

      The problem I have is that thumbWidth is an absolute - if I set it to 800 for example, each image is scaled up to 800 then cropped down to 500 high. What I would really like to do is switch off scaling altogether. Is this possible, or would I need to write a plugin for Gallery?
        • 22827
        • 129 Posts
        Quote from: paulkoan at Nov 15, 2010, 10:22 PM

        Hello,

        I am using Gallery to display an album.. this is one of those horizontal scroll type albums, where each image is the same height, but has different widths.

        In this case, the images are already all 500px high, so I have thumbHeight set to 500, so there isn’t actually any scaling that needs to be done, I am displaying the images at their actual dimensions.

        The problem I have is that thumbWidth is an absolute - if I set it to 800 for example, each image is scaled up to 800 then cropped down to 500 high. What I would really like to do is switch off scaling altogether. Is this possible, or would I need to write a plugin for Gallery?

        Forget it, I just realised that thumbImageCrop is an option for the Gallery snippet. Set it to ’0’.
          • 33591
          • 1 Posts
          hi ThaClown

          thanks for your pretty-gallery-input, but i dont’t understand your code:

          <a href="[[+image]]" rel="prettyPhoto&#91;[[+album]]&#93;">

          .. &#91 and &#93 .. to what it refer huh

          thanks for reply
            • 16148
            • 84 Posts
            I have problems generating the picture after pressing the thumbnail.
            What can I do to get this function repaired?

            SEE THE BUG HERE:
            http://stevnslan.dk/index.php?id=13&galAlbum=1
              • 36461
              • 102 Posts
              Hi,

              I really need some help with outputting galleries.

              I don’t need anything complex, but I’m afraid I won’t be able to figure this out on my own. I dis some forum and Google crawling, but didn’t find anything similar.

              What I want:

              I will have approx 150 galleries and I want them all displayed, I understand that I will need to use this call: [[GalleryAlbums? &dir=`ASC`]]
              At the moment, when Using this call, all galleries are listed, with just their title, clicking on them doesn’t do nothing.

              1. I would like for galleries displayed like this:

                          <div class="album">
                          <h4>[[Gallery Name]]</h4>
                          [[Gallery thumbnail]]
                          <br /><span><strong>[[amount of]]</strong> images</span>
                          </div>
              


              I learned that I need to edit galAlbumRowTpl, but I’m not sure what exactly to edit.


              2. After clicking on Gallery thumbnail, all thumbnails of clicked gallery appear. When I click on thumbnail bigger picture appears preferably with lightbox 2 or lytebox

              I tried reading through documentation, but it’s a bit too complex and while there are some great, easy to follow tutorials, I couldn’t find anything similar to my problem.

              I used easy2gallery and maxigallery in modx evolution before, which was way more easier smiley

              It would be really nice if some one could help me out.
                • 10638
                • 57 Posts
                It anyone having problems with Gallery after upgrading to 2.0.5? I just lost the ability to update / edit my albums. I checked the database and everything is still there, it’s just when I go to the Gallery interface, no albums show up, even after a refresh. I can’t create new albums either.

                What I have tried:

                • cleared cache
                • completely uninstalled (removed db tables also)
                • reinstalled

                Same issue.

                undecided


                EDIT: This issue was fixed by uploading the previously missing config.core.php file! laugh Thanks guys!
                  • 10257
                  • 55 Posts
                  I try to use the tv in combination with getResources. But there is no picture that is displayed... live example is the testing site http://modx.efflorescos.de/

                  Page is build by calling
                  [[!getResources? 
                     &parents=`9`
                     &limit=`4`
                     &sortby=`publishedon`
                     &sortdir=`DESC`
                     &includeTVs=`1`
                     &hideContainers=`1`
                     &includeContent=`1`
                     &tpl=`latestPostTpl`
                  ]]

                  with latestPostTpl set to
                  <li>
                      <div class="ditto_summaryPost">
                      <div style="float: right">[[+publishedon:strtotime:date=`%b %d, %Y`]][[+tv.wherePosted:notempty=`, [[+tv.wherePosted]]`]]</div>
                  <h3><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h3>
                        [[+tv.teaserPic]]
                      <p>
                        [[+introtext:default=`[[+content:ellipsis=`300`]]`]]</p><div class="moreLink"><a href="[[~[[+id]]]]">Mehr »</a></div>
                  </div>
                  </li>​


                  teaserPic is the galleryItem tv. Seems like I get the tv, but it is not rendered to html...

                  Edit: Found the solution. Was an getResources / rtfm problem... I had to include &processTVs=`1` in the getResources call..
                  • Could someone be so kind as to tell me how much cpu is used when loading a page with a gallery on it?

                    I’m trying to pinpoint a reason why my dedicated server is having CPU spiked with modx rev. I get 15-20% cpu spike when a single user lands on a page that uses the connector.php related to the gallery.

                    Thanks.
                      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                      AugmentBLU - MODX Partner

                      BLUcart - MODX Revolution E-Commerce & Shopping Cart
                      • 36426
                      • 197 Posts
                      Hi I hope someone can please help. I have a useful snippet that pulls in and shows the first image of every gallery album, so when a user clicks on a gallery page the first image appears automatically.

                      The problem is when my snippet "getFirstImage" pulls in the first album image and the item ID is over 100 it stops working. I've put a thread here asking for help if anyone can please assist to fix this bug?

                      http://forums.modx.com/thread/98144/snippet-not-working-right-all-the-time#dis-post-530695
                        Yorkshire UK based hosting provider: https://www.simulant.uk