We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    Great photo album
    WARNING: Japanese language

    http://piccy.dotimpac.to/
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media
      • 33372
      • 1,611 Posts
      @rthrash: Do you mean a div around every image? Hmm. I must have tried that (since I recall explicitly doing it with floats), but I don’t remember having that many divs...

      What I’d like ideally is just one container div (fixed size, etc.) with the images inside it (with their size, margins, etc. declared). So then you could just dump X number of images into the div and they’d arrange themselves into tidy little rows. This is what never seems to work for me without a loading "jumble".

      I’m sure someone’s got it to work perfectly tho... anyone have a link?
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 33372
        • 1,611 Posts
        Quote from: Djamoer at Jul 11, 2006, 10:19 AM

        Great photo album
        WARNING: Japanese language

        http://piccy.dotimpac.to/

        Wow. That is nice. Kinda makes our didling over rows and columns seem quaint, doesn’t it?
          "Things are not what they appear to be; nor are they otherwise." - Buddha

          "Well, gee, Buddha - that wasn't very helpful..." - ZAP

          Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
          • 26435
          • 1,193 Posts
          Quote from: Djamoer at Jul 11, 2006, 10:19 AM

          Great photo album
          WARNING: Japanese language

          http://piccy.dotimpac.to/

          yeah!
          I agree. I like that a lot too. berry nice.

          -sD-
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 18219
            • 826 Posts
            Quote from: Djamoer at Jul 11, 2006, 10:19 AM

            Great photo album
            WARNING: Japanese language

            http://piccy.dotimpac.to/

            Wooa, I like this. It’s very nice.
              Marc
              I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              I want to be able to view the gallery belonging to a different page; I have a gallery set up for page x, and I want to be able to view that gallery from page y. I haven’t been able to find an argument that specifies which document’s gallery to view. Is this possible, or have I just missed it?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 18219
                • 826 Posts
                Yes, it’s possible if you use this parameters :
                // &picture_target              = [ number ] : ID of the document what will be used for browsing the pictures,
                //                                             there must be the same snippet call in that target document 
                //                                             with &is_target=`1` parameter added to the call.
                // &manage_target               = [ number ] : ID of the document what will be used for managing the gallery,
                //                                             there must be the same snippet call in that target document 
                //                                             with &is_target=`1` parameter added to the call. If manage_target 
                //                                             is not set, the document what holds the gallery will be used.
                // &manage_gallery              = [ number ] : ID of the gallery to be managed. The ID is the document ID of the page what 
                //                                             has the gallery call. Use this to not having to go to the gallery page. Set
                //                                             the same parameters to the call what are in the gallery itself.
                // &display_manage              = [ 0 | 1 ] : Display the "manage" button in gallery pages if user has rights to manage 
                //                                            the pictures? Default: 1
                // &is_target                   = [ 0 | 1 ] : If the document is the target for picture browsing mode or picture manager. 
                //                                            Default: 0
                
                  Marc
                  I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I’m sorry, I still don’t see how this will work. If I have a gallery on page x, and I also want to be able to view this same gallery on page y, when I go to page y how do I tell the snippet to show me the gallery for page x? Something like [[MaxiGallery? &gallery_to_view=`x`...]]

                  From what I understand of these arguments, if I go to page x and want to view the gallery for it, it will send me to page y to view the gallery. That is not what I need to do.

                  &manage_gallery gives me the manager page for the gallery, but again that’s not what I need to do. I need to view the thumbnails.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 18219
                    • 826 Posts
                    Quote from: sottwell at Jul 13, 2006, 06:13 AM

                    I’m sorry, I still don’t see how this will work. If I have a gallery on page x, and I also want to be able to view this same gallery on page y, when I go to page y how do I tell the snippet to show me the gallery for page x? Something like [[MaxiGallery? &gallery_to_view=`x`...]]

                    From what I understand of these arguments, if I go to page x and want to view the gallery for it, it will send me to page y to view the gallery. That is not what I need to do.

                    &manage_gallery gives me the manager page for the gallery, but again that’s not what I need to do. I need to view the thumbnails.
                    Excuse me, I had not understood what you sought. Not, it is not possible to show a same gallery on another page.
                    The only method which exists is to pass by @document but there it is all the page which is shown. But we can take into account this request for next the release. In fact it is about the parameter $_REQUEST [“gal_id”]. In Doze to take that. It is about a recurring request.
                      Marc
                      I'm French... Sorry for my bad English, I use ' Google Translator' or other... but that remains that tools wink
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      It does now. Very simple hack. I wanted a link to have the gallery ID in the URL, since I would be loading galleries for different pages on a page using NewsListing. So I add a link to the NewsListing summary template using the [+id+] placeholder, ?gallery=[+id+]. Works great.

                      Line 182, add:
                      $mgconfig['view_gallery'] = (isset($_GET['gallery'])) ? $_GET['gallery'] : $modx->documentIdentifier;
                      


                      line 865-866:
                      //$pageinfo=$modx->getPageInfo($modx->documentIdentifier,1, "id, pagetitle, longtitle, description, alias, createdby");  
                      $pageinfo=$modx->getPageInfo($mgconfig['view_gallery'],1, "id, pagetitle, longtitle, description, alias, createdby");
                      


                      It would be easy enough to add the ability to specify the gallery in the snippet call with another argument but it’s late and I’m tired.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org

                      This discussion is closed to further replies. Keep calm and carry on.