We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26184
    • 5 Posts
    Hi, did a search but most of the stuff I came across was specific to putting thumbnails for child galleries onto a single page..

    Is it possible to have more than one snippet on a document page?

    What I’m looking to do is have the thumbnails under sub headings on the same page. Initially I thought just putting the snippet call, and then underneath the header - adding another snippet call. But I noticed that when I uploaded the images for the fist section it repeated them verbatim in the second.

    I’m not too familiar with snippets and editing code in general, so if it is a code change I’d appreciate a "for dummies" explanation if it is at all possible... wink

    Many thanks, in advance. smiley

    Can’t produce an example I’m afraid as I’m devving this locally at the moment.
      • 7923
      • 4,213 Posts
      One document can only have one gallery.. but do it like this, create the documents for each gallery in some hidden folder. Then on the document that you want to show the galleries, under each sub heading, use the &view_gallery parameter to get the gallery from one of the documents that you did in the hidden folder.. that should do it.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 26184
        • 5 Posts
        I can’t seem to find that parameter in any of the documentation.. could I be a pain and ask how I’d need to lay it out?

        I have Maxigallery working on another site, and call three galleries into one page using the [!MaxiGallery?display=childgalleries!] which works, but that only does one thumb for each and then goes to their respective pages.

        Sorry to be such a dumbass, I appreciate the help. Thanks!
          • 7923
          • 4,213 Posts
          What version are you using? can’t remember when I add that parameter.. might have come in the 0.5v betas, but they are stable enough for production use too (atleast that’s what I would say.. I have just labeled them as betas, because they don’t still have all the features that I want to put to the final version for v0.5).

          So if you create an unpublished folder "Galleries" for example, then you create three documents under it:

          Dog Gallery (ID 33) with content: [!MaxiGallery!] (+any parameters you want)
          Cat Gallery (ID 34) with content: [!MaxiGallery!] (+any parameters you want)
          People Gallery (ID 35) with content: [!MaxiGallery!] (+any parameters you want)

          Then in the document that you want to list the galleries, you do this:

          Galleries Heading


          Dog Gallery Sub Heading

          [!MaxiGallery? &view_gallery=`33`!]


          Cat Gallery Sub Heading

          [!MaxiGallery? &view_gallery=`34`!]


          People Gallery Sub Heading

          [!MaxiGallery? &view_gallery=`35`!]


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 26184
            • 5 Posts
            Ah, that’ll be it. I’m still using the previous version.

            This is fab, thank you so much !
              • 17851
              • 213 Posts
              OK, I’ve read this and I thought it worked for my purposes but now I don’t think so. What I need is a "pictureview" and a "smoothgallery" on the same page. I’ve setup two docs as children (id’s 8 and 9) under a main doc, "Galleries". Each child has 2 photos. They each have the following in the content: [!MaxiGallery? &display=`pictureview`!]

              In the calling document I’ve got: [!MaxiGallery? &view_gallery=`8`!] and [!MaxiGallery? &view_gallery=`9`!]. The initial view is fine, but when I click "next", I get:

              « MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource:
              « PHP Parse Error » PHP error debug
              Error: getimagesize(): Read error!
              Error type/ Nr.: Warning - 2
              File: .../assets/snippets/maxigallery/maxigallery.php
              Line: 760
              Line 760 source: $imagesize=getimagesize($modx->config[’base_path’].$mg->path_to_gal.$pics[$i][’filename’]);


              Any ideas? Is what I’m trying to do possible?
                Mark Macatee
                President
                Power 10 Solutions
                http://www.power10solutions.com
                • 7923
                • 4,213 Posts
                Click next in where? and what MaxiGallery version?


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 16481
                  • 31 Posts
                  Besides I will ask you a question at the start from Japan today.
                  Besides I use MaxiGallery at the start today.

                  At first I please permit it it if there is a rude place because I use a translation site because I am weak in English.

                  I write three call In page 1

                  [[MaxiGallery? &gal_query_ids=`49,50,51` &display=`embedded` &embedtype=`lightboxv2` &order_by=`random` &limit=`4` &pics_per_row=`4`]]

                  [[MaxiGallery? &gal_query_ids=`52` &display=`embedded` &embedtype=`lightboxv2` &order_by=`pos` &order_direction=`ASC` &max_thumb_size=`130` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`#faf9f3` &limit=`1` &pics_per_row=`1`]]

                  [[MaxiGallery? &gal_query_ids=`53` &display=`embedded` &embedtype=`lightboxv2` &order_by=`pos` &order_direction=`ASC` &max_thumb_size=`130` &thumb_use_dropshadow=`1` &thumb_shadow_bgcolor=`#faf9f3` &limit=`1` &pics_per_row=`1`]]

                  And an image calling particularly joins when I let I spread and display it and sent it in PREV.

                  May you let you display it according to a thing calling this?
                  In that case, what kind of description should I do?

                  MaxiGallery version 0.5.2
                  MODx version 0.96

                  The environment,
                  MySQL4.0.x
                  apache 1.3.x
                  PHP 4.3.x

                  I am glad if I have you teach it.
                  Thank you very much.
                    • 17851
                    • 213 Posts
                    Doze
                    I’ve got a document with 2 MaxiGalleries: one is a "pictureview" that has Prev and Next links, the other is a SmoothGallery. I’m using 0.5.2 and MODx 0.9.6. Also,
                    Apache 2.2
                    PHP 5
                    MySQL 5.0.37
                      Mark Macatee
                      President
                      Power 10 Solutions
                      http://www.power10solutions.com
                      • 7923
                      • 4,213 Posts
                      Quote from: MacLonghorn at Aug 19, 2007, 08:37 PM

                      Doze
                      I’ve got a document with 2 MaxiGalleries: one is a "pictureview" that has Prev and Next links, the other is a SmoothGallery. I’m using 0.5.2 and MODx 0.9.6. Also,
                      Apache 2.2
                      PHP 5
                      MySQL 5.0.37
                      Yeah, that wont probably work.. When you click next from the pictureview gallery, it sets the picture id to the url query string, then both galleries tries to show that picture I guess.. I have to do some debugging.. and possibly implement gallery id parameter, where you can set and individual id for the call so that every call works separately on the same page..


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