We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Hi I got my gallery installed and my album created under components.

    lucienalec.com/portfolio

    I’m sorry if it seems like a novice question but for the life of me I can’t find out how to add pictures, my directory is defined, and there are images in there, Yet no pictures, I know I’m missing something. Help? undecided
      • 29517
      • 40 Posts
      This reply won’t help you lucienalec as it’s basically a "me too" comment.

      I’ve created a dozen sites in Evolution and used MaxiGallery with no problems but this is my first site in Revolution and I’m having difficulty installing Gallery. I’ve gone through the wiki several times following it down to the letter but I suspect the wiki makes a few assumptions, one of which is that I’m not an idiot.

      So please bear with me. I’ve successfully installed the Gallery package - no problems there. I haven’t changed any of the file paths and have uploaded a couple of sample images to assets/components/galleries/files/. I then created the TV as per the wiki and assigned it to the appropriate templates.

      Here’s where my problem begins. When I go to the resource that has the TV enabled, I see the "Choose an Image" button, but when I click on this, the Gallery Browser window opens, supposedly for me to select and image file, but I don’t see any files in that window. I’m assuming this window should display files in the directory I stated above. Is that correct?

      Also, what is the process for batch uploading and the naming of albums? Is the album name simply taken from the name of the folder uploaded into the directory above? Anyway, then I tried uploading a folder called "album" into the directory above with a few sample pics, but still nothing appears in the browser.

      I pasted the snippet call code provided at http://rtfm.modx.com/display/ADDON/Gallery.Example1 into my resource http://www.highondance.com.au/index.php?id=13 but still nothing.

      Maybe I’m thinking too much along the MaxiGallery lines, but I don’t understand a few things which really highlights my idiot status. These are:
      • Where in the Gallery.Example1 code do I specify the folder from which to display the images?
      • If I just want an ultra basic Gallery that displays a bunch of photos - no albums, subgalleries, etc. do I need the TV or can I just achieve this with a snippet call?

      Any help would be appreciated.


        Creative Director - Throwstone Web Design Melbourne
        • 29517
        • 40 Posts
        I’ve just discovered a very fundamental step not mentioned in the Wiki. To create an album, go to the Components tab and select Gallery. Here you can create, name and batch upload an album. I created an album called ’photoshoot’, then on the page where I wanted the gallery to appear, I placed a very basic snippet call - [[!Gallery? &album=`photoshoot`]]

        Now on my gallery page, all the thumbnails appear as you can see here http://www.highondance.com.au/index.php?id=13

        But, when you click on the thumbnail, it doesn’t enlarge. Oh well.. at least I have thumbnails now. I’m sure there are hundreds of you out there who can solve my problem in your sleep, so please.. could one of you kindly tell me what basic step I’m missing here?
          Creative Director - Throwstone Web Design Melbourne
          • 25141
          • 49 Posts
          Looks like you’ve figured it out by now, but as I was just struggling with the same question here’s the answer for everybody else:
          You have to place the Snippet Call [[!GalleryItem]] somewhere in your Resource.

          [[!Gallery? &album=`slides`]] displays all images from an album called slides.
          [[!GalleryItem]] is the Snippet Call used to show single pictures. If you do not place this Snippet Call somewhere, your thumbnails will not lead you anywhere.
          [[!GalleryAlbums?]] is what you use to display a list of all your galleries.
            • 25876
            • 79 Posts
            I am also struggling with a very basic question - how and where to upload my actual images? Backend? Frontend?

            I am used to MaxiGallery, so maybe I’m thinking along wrong lines - but I can’t find a "Upload Pictures" ANYwhere! I have created albums, I am able to list those albums (example from the wiki), but clicking on them does not have any affect whatsoever.

            I’m almost sorry to ask, but: how to add pictures?

            Thanks for any help!
              • 25141
              • 49 Posts
              easy but also easily overlooked: right-click on the album and choose update album
                • 29517
                • 40 Posts
                s1Mon, Go to the Components Tab and select Gallery. Create an album, save it, then Right Click on the album name to upload your pictures.

                Rixe, no I haven’t figured it out yet, but I found a workaround for my client’s gallery. I did place [[!GalleryItem]] but the thumbnails still didn’t lead anywhere. When I placed the snippet calls in my Resource Content, and then viewed the page http://www.highondance.com.au/index.php?id=13 not much happened. But when I changed the URL to http://www.highondance.com.au/index.php?id=13&galAlbum=2 it worked fine. So in the end, I had to create a weblink to that url and place that in the menu bar. Not elegant but it works for now.

                I’m still looking forward to seeing simple step by step instructions on how to use Gallery. Everything about Revo is great but if I can’t confidently set up a gallery for my clients, it’s the one thing that’s keeping me stuck in Evo.
                  Creative Director - Throwstone Web Design Melbourne
                  • 25141
                  • 49 Posts
                  terobot, would you show me your whole snippet call?
                    • 25876
                    • 79 Posts
                    okey, I’ve figured that out by now. But is this the only way to add images? I would like to enable my clients to easily add new images for a new project (a new resources that is). This was possible with Evo and MaxiGallery (frond-end upload button).

                    Also, the thumbnails lead to nothing, same problem as terobot. If I place the code of GalleryExample1 from the wiki in a resource, thumbs lead to the picture.
                    All I want though is having a set of thumbs displayed for each resource, and clicking upon a thumb, the picture should appear with a lightbox (or mediabox or whatever) effect in full-screen. Is there a tutorial how to achieve this (in my opinion very basic usage) somewhere?
                      • 25141
                      • 49 Posts
                      s1Mon - I don’t know of any front-end way of adding pictures to the Gallery at the moment. But the backend is IMO quite user-friendly as soon as one has figured out the right-clicks ...

                      About the thumbnails / lightboxes: I’ve figured out a solution for me today, using the jQuery lightbox http://fancybox.net/home.

                      1. Download fancybox, put content of folder ’fancybox’ into your filesystem, I used .../assets/components/fancybox
                      2. To load the jQuery, the fancybox-js and css and to get the plugin started put the following in between your <head>tags, remember to adapt your paths as needed.
                      The class I’m calling here (single_image) is the class I’ll be giving all my Gallery thumbs
                      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
                      <script type="text/javascript" src="[[++site_url]]assets/components/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
                      <link rel="stylesheet" href="[[++site_url]]assets/components/fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />
                        <script> 
                            $(document).ready(function(){
                              $("a.single_image").fancybox();
                              });
                          </script>

                      3. Create a chunk for all your Gallery thumbs, I called mine ’fancyboxThumb’ - this is where I assigned the class single_image and also the rel="fancy-images"
                      <div class="[[+cls]]">
                        <a href="[[+image]]" rel="fancy-images" title="[[+name]]" class="single_image">
                              <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
                          </a>
                      </div>​

                      4. Then you can call the snippet in your resource, for example like this
                      [[!Gallery? &thumbWidth=`190` &thumbHeight=`190` &thumbTpl=`fancyboxThumb` &toPlaceholder=`gallery`]]
                      [[!GalleryItem &imageWidth=`650`]]
                      [[!+gallery:notempty=`
                      [[+gallery]]
                      `]]

                      The first call displays the thumbnails. I adjusted the size, set the Template used to the custom one I created and the placeholder to "gallery", which I call further down.
                      The second call displays the single pictures. I haven’t gotten it to really use the 650px I set, but that is the option that should work.

                      So this is as far as I got today, next thing will be to adapt the first Gallery snippet call to use a specific album I want or just display tagged content etc. But that’s easy, all the options are in the wiki.

                      Hope this helps!