We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6354
    • 9 Posts
    I want to make subcategorys in my gallery:
    Example:
    On the one page there are 10 gallerys (ten pictures)
    And if I click on the one of 10 gallery’s, that gallery pops up! See picture.

    And then I can go into this category and click on next and see pictures in this subcategory!
    Not like on the site http://www.netguru.fi/modx/maxigallery-slidebox.html where you see pictures that are already on that page!

    So I want to load the pictures in that category!
    So like this:
    Index has 10 gallery’s :
    - 1 gallery – 1.2.3.4.5 pictures in that gallery
    - 2gallery– 1.2.3.4.5 pictures in that gallery
    - 3 gallery– 1.2.3.4.5 pictures in that gallery
    - 4 gallery– 1.2.3.4.5 pictures in that gallery
    - 5 gallery– 1.2.3.4.5 pictures in that gallery
    - 6 gallery– 1.2.3.4.5 pictures in that gallery
    - 7 gallery– 1.2.3.4.5 pictures in that gallery
    - 8 gallery– 1.2.3.4.5 pictures in that gallery
    - 9 gallery– 1.2.3.4.5 pictures in that gallery
    - 10 gallery– 1.2.3.4.5 pictures in that gallery
    I hope I explained this good!
    Thanks
    Davor
      • 7923
      • 4,213 Posts
      Did not understand..

      Do you want that in the index page, you have 1 picture of each 10 galleries and when you click on the picture, you go to a document what lists all the pictures? or do you want that slidebox comes up that lists pictures from that gallery? or do you want that slidebox list pictures from all galleries? or do you want that all pictures are in the index document?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 6354
        • 9 Posts
        or do you want that slidebox comes up that lists pictures from that gallery?

        Yes I want to have 10 pictures and each one of the 10 contain other pictures that are not on index page!
        But when you click on it it comes slidebox and lists pictures from that gallery like my example above!
        I hope now that I explained it better!
        Thanks
        Davor
          • 7923
          • 4,213 Posts
          Use Ditto to list the gallery documents and limit maxigallery to show 1 picture from the gallery with slidebox embed type. Should do what you want.

          Eg, in Ditto’s template, have [[MaxiGallery? &view_gallery=`[+id+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 6354
            • 9 Posts
            Eg, in Ditto’s template, have [[MaxiGallery? &view_gallery=`[+id+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]

            My index page is: www.adriacro.net/begin.html with id 107
            and my gallery is: www.adriacro.net/gallery1.html with id 106
            So I made like this
            [[MaxiGallery? &view_gallery=`[+106+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]

            And it gives me error:
            « MODx Parse Error »
            MODx encountered the following error while attempting to parse the requested resource:
            « `` is not numeric and may not be passed to makeUrl() »

            Parser timing
            MySQL: 0.0020 s (3 Requests)
            PHP: 0.0406 s
            Total: 0.0426 s
            Maybe I didn’t understend ditto, but it is only this part [+106+] and between +signs I can put ID or something else!
            So my ditto template can be like this:
            [[MaxiGallery? &view_gallery=`[+106+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]
            [[MaxiGallery? &view_gallery=`[+105+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]
            [[MaxiGallery? &view_gallery=`[+104+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]
            [[MaxiGallery? &view_gallery=`[+103+]` &limit=`1` &display=`embedded` &embedtype=`slidebox`]]

            I think this is what you wanted to explained me????
            Thanks Davor
              • 6354
              • 9 Posts
              me again,
              I found it that if I remove [++] and live only number 106, it gives me the first picture in that gallery and if I click on next gives me the next one!

              I don’t know why it works without, can you explain!
              Thanks,
              Davor
                • 6354
                • 9 Posts
                again me.
                I found article http://modxcms.com/forums/index.php?topic=13878.0; , about the same problem, that I have an he also replace [++] with jus id.
                But later in the same post Dimmy say:
                "you could also use maxigalery itself for this

                place this in your ditto call
                [[MaxiGallery? &view_gallery=`[+id+]` &limit=`1` ]]

                this will get the top image from the gallery used on that page"

                So my conclusion is: I don’t have ditto call! Or I Don’t get it what the ditto call is!
                Can you help?
                Thanks
                Davor
                  • 7923
                  • 4,213 Posts
                  Ditto is a snippet in modx to list documents. With ditto, you can do a custom template to it and in that template, use the snippet call to maxigallery what I posted above. When ditto lists the documents with your custom template, it replaces that [+id+] placeholder with the document id that it currently processes. That’s all the info you need to get it working.. it’s now up to you to start studying MODx, Ditto, MaxiGallery and available parameters.


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