We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Ok, I figured out some basic things in MODx and now I want to know how to put some galleries in my site.

    What I’m trying to get is:

    root
    | Main galleries
    | club 1
    | gallery 1
    | gallery 2
    | etc...
    | club 2
    | gallery 1
    | gallery 2
    | etc...
    | club 3
    | gallery 1
    | gallery 2
    | etc...
    | club # etc...


    ...and the option the webusers can leave comments on each gallery.

    ???????????????’ What is the best and simple way to do this huh!??!


    This is what I done so far:
    -> created folder "galleries" (page id = 48), I put on it call
    [!MaxiGallery? &display=`childgalleries`!]


    -> in that folder I created "club 1" (name of the club), and subfolder named e.x. "gallery 1"; I put on it call
    [[MaxiGallery? &display=`embedded` &embedtype=`slidebox` &pics_in_a_row=`3` &max_thumb_size=`110` &max_pic_size=`0`]]    
    {{GalleryJot}} 



    The problem is that I only see "Main galleries" and 3 example pic’s on it, as it no subfolders are present...


    Could you help me? undecided

      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 20349 ☆ A M B ☆
      • 453 Posts
      C’mon...I know you know how to deal this!!!! wink grin


      Pretty please with cherry on top! rolleyes

        BASE - Web Design Studio
        MODX Ambassador

        Website
        • 7923
        • 4,213 Posts
        I didn’t quite understand that what was your problem...? Also, which maxigallery version are you using? And also, if you want to get commenting possibility to each picture separately, that can be done like this:

        1. Create a new chunk with the default maxigallery pictureTpl template code from maxigallery/templates/picturetpl.html, call it mgPictureTplComment for example.

        2. Then in that template, add your jot call (you can modify any of the parameters, but keep that &tagid):

        [[Jot? &subscribe=`1` &tagid=`[+maxigallery.picture.id+]` &pagination=`10` &badwords=`something` &customfields=`name,email` &canmoderate=`Jot Moderators` &trusted=`Jot Trusted Users`]]

        3. Create the gallery documents, set them to be uncached, and call MaxiGallery using (+add any parameters you want):

        [[MaxiGallery? &pictureTpl=`mgPictureTplComment`]]


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 20349 ☆ A M B ☆
          • 453 Posts
          I would like to deal the gallery problem itself, then I’m gonna move on to commenting pictures if you don’t mind hehe smiley But on that case I followed up the tut on Wiki -> http://modxcms.com/MaxiGallery-PhotoBloggin-0.html

          Hmm...how to explain better?

          Bassicly I don’t know how exactly to call the snippet to get the structure what I want (drawed in the first post)

          I’m using 0.9.6 RC1 and included maxigallery in it
            BASE - Web Design Studio
            MODX Ambassador

            Website
            • 7923
            • 4,213 Posts
            The photoblogging resource page (not a wiki page) is applicable for v0.4.1, don’t know what version you are using, but if you use v0.5 then use what I posted above. Much easier.

            root
            | Main galleries [!MaxiGallery? &display=`childgalleries`!] will show a link to all galleries that are under this document.
            | club 1 [!MaxiGallery? &display=`childgalleries`!] will show a link to all galleries that are under this document.
            | gallery 1 [!MaxiGallery!]
            | gallery 2 [!MaxiGallery!]
            | etc... [!MaxiGallery!]
            | club 2 [!MaxiGallery? &display=`childgalleries`!] will show a link to all galleries that are under this document.
            | gallery 1 [!MaxiGallery!]
            | gallery 2 [!MaxiGallery!]
            | etc... [!MaxiGallery!]
            | club 3 [!MaxiGallery? &display=`childgalleries`!] will show a link to all galleries that are under this document.
            | gallery 1 [!MaxiGallery!]
            | gallery 2 [!MaxiGallery!]
            | etc... [!MaxiGallery!]
            | club # etc... [!MaxiGallery? &display=`childgalleries`!] will show a link to all galleries that are under this document.

            Have you seen this thread: http://modxcms.com/forums/index.php/topic,12195.0.html


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 20349 ☆ A M B ☆
              • 453 Posts
              Hey! Thanks for the reply and the answer! I was just reading it @ the moment! Sorry for double themes posting! undecided

              P.S. now I have another "problem" grin

              I use friendly URLs and the link for my sub gallery is something like "mysite.com/name-of-the-gallery"

              What can I do to have it linked like "mysite.com/galleries/club1/gallery1"
              if it’s regarding this gallery:
              | Main galleries
              | club 1
              | gallery 1


              I used this just for an example...
                BASE - Web Design Studio
                MODX Ambassador

                Website
                • 7923
                • 4,213 Posts
                Enable friendly alias paths in MODx manager


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 20349 ☆ A M B ☆
                  • 453 Posts
                  Quote from: doze at Feb 28, 2007, 01:57 PM

                  Enable friendly alias paths in MODx manager

                  Thanks a million! That did the trick wink

                  --------------

                  Hmm...I’m just looking...... and I don’t see any subfolder (call in a document is [!MaxiGallery? &display=`childgalleries`!])

                  The end of the gallery itself seems fine. Can it be some template issue or what?

                  EDIT! I called it with [!Ditto? &depth=`1`!] and outputs what it works for me.... can I made a custom template for this call?


                  P.S. I will wrote some wiki about all this regarding Maxigalleries for beginners, so don’t think your posts are waste of time wink
                    BASE - Web Design Studio
                    MODX Ambassador

                    Website
                    • 7923
                    • 4,213 Posts
                    If you don’t have any pictures in the galleries yet, childgalleries display mode won’t list them. And yes, you can use Ditto to list them if you want, refer to Ditto documentation on how to use it. You can even use MaxiGallery inside Ditto’s templates to pic up images from the galleries that Ditto lists.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 20349 ☆ A M B ☆
                      • 453 Posts
                      This is what I currently have: [!Ditto? &depth=`1` &sortDir=`ASC`!]

                      Q: how do I sort them alphabetical?

                      P.S. I will try to play with some templating tommorrow wink
                        BASE - Web Design Studio
                        MODX Ambassador

                        Website