We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5653
    • 9 Posts
    I’ve just installed MaxiGallery, seems to be working fine. Is there an option for categories / subcategories? I am working on a site for four artists. I have created a resource "Galleries" with four children, one for each artist. I would like to go to each artist’s page and select a category from their list (ie. Wildlife, Landscapes, Portraits, etc.). The main Galleries page is showing the images from the child galleries, which is ideal. I just need categories for each artist page.

    Please help! This is my first modx site and so far I AM LOVING it! Amazed at the possibilities!
      • 5653
      • 9 Posts
      It has taken all day but I figured it out! Here’s the arrangement of the gallery if anyone needs help.

      I wanted my Main Gallery to list all the artist’s names, with their photos. Once clicked it would go to the selected artist’s gallery page. On the artist’s gallery page I needed thumbnails of all their categories to choose from.

      My setup is:

      Main Gallery
      Artist 1
      Wildlife
      Western
      Artist 2
      Landscapes
      Portraits

      In the Artist 1 and Artist 2 galleries I have only one image. It is a photo of the artist, the image title is the artist’s name.

      When I would call the Wildlife, Western categories into the artist page, their photo would appear as well. Very undesirable, as their photo is not a category. So, the goal was to remove that thumbnail so only the categories would show. I had the same problem with the Main Gallery. When I called the child galleries it loaded every picture in all the galleries. All I wanted was the Artist’s photos.

      So, with help from this post: http://modxcms.com/forums/index.php/topic,34060.0.html I was able to remove the unwanted thumbnails from all the pages!

      I opened galleryOuterTpl.html in Dreamweaver and deleted the thumbs info at the bottom:

      [+maxigallery.embedtype:isnot=`smoothgallery`:then=`
      [+maxigallery.pictures:isnot=``:then=`
      <div class="thumbscontainer">
      <ul class="thumbs">
      [+maxigallery.pictures+]
      </ul>
      </div>
      `+]

      Also deleted an extra `+] at the very bottom, too. There was also two marks in the middle of the code, at the end of line 25 and 29, I removed them as well.


      I created a chunk, named it gallerynothumbsTpl and pasted my new galleryOuterTpl into it.

      In Main Gallery I put this snippet: [!MaxiGallery? &gal_query_ids=`17,18` &query_level_limit=`0` &limit=`1`!] (17 and 18 is the ID of the subgalleries, yours would be different)

      In the Artist 1 and Artist 2 galleries I put this snippet: [!MaxiGallery? &display=`childgalleries` &galleryOuterTpl=`gallerynothumbsTpl`!]

      In Wildlife, Western, Landscapes and Portraits I put this snippet: [[MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`]]


      Not too bad! I haven’t even begun to customize the css and templates yet and already it’s coming together nicely. I am totally new with Modx and am already somewhat obsessed!

      I hope this helps someone! I have found the forum quite useful and will probably visit frequently.






        • 5653
        • 9 Posts
        Revision to my last post

        After I uploaded several more images I discovered my snippet on the Main Gallery page was not working correctly. This is the new snippet, and it does work as planned:

        [!MaxiGallery? &childgalleries_ids=`16` &display=`childgalleries` &order_by=`pos` &childgalleries_level_limit=`1`!]

        Here’s a link to the site I’m working on so you can see what I’m talking about. Please keep in mind this is my first Modx site, a long way from finished, and some links are broken. But here goes: http://www.theartsofhuntingandfishing.com/index.php?id=16 (the gallery page)

          • 7923
          • 4,213 Posts
          Good job that you got it resolved by yourself and thanks for posting your results! It can help others in future.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 17442
            • 5 Posts
            Hi!

            I just started to play with maxigallery today and also being a modx newbie I have a question. As I understand there are templates that form a layout for data of the gallery which can be freely customised and altered but is there a way to use those placeholders "directly"/outside of templates - like a direct call from a page (for instance like documet id’s +id+? Right now the gallery as it should - puts out where the snippet call is made. I hope I was clear enough. wink. Thanks for reply.
              • 5653
              • 9 Posts
              I’m not totally for sure what you mean by outside of templates, you may have to describe that some more. On my gallery I used the call &gal_query_ids= "17,18" to bring in whatever the gallery looks like on those pages. Is that something like you’re talking about? That was from the post from Sept. 30 at 3:22. You can customize the output for the gallery on every page id then pull the results of that page into another page. That’s how I did the example above. I’m not sure if that’s what you’re talking about or not. What do you want for the final result of your gallery? Maybe if you setup an outline that would help understand your question. I found the snippet calls at the wiki for maxigallery: http://wiki.modxcms.com/index.php/MaxiGallery
              Hope this helps, this forum is the best place for answers, for sure. Even if you have to piece together posts.
                • 17442
                • 5 Posts
                Hi!

                I really didn’t form the question so it could be easy to understand. I apologise for that. What I would like to know is the following: when u make a snippet call in your html there’s where the snippet result will come up. In the MaxiGallery docs at wiki you have a list of all placeholders that are available in the template files found in \snippets\maxigallery\templates. So what I’m wondering is - can those placeholders ... like [+maxigallery.picscount+] be used directly below the snippet call in the html?
                  • 7923
                  • 4,213 Posts
                  No, they are available only in MaxiGallery templates.


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 17442
                    • 5 Posts
                    Thank you for explaining that.
                      • 12438
                      • 10 Posts
                      If we want to use a child-gallery document as a "category" - not showing self thumbs but only these of its children
                      simply use the combination &limit=`0` &display=`childgalleries` in the snipped call.

                      Theres no need of cranking MaxiGallery templates for that smiley