We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33673
    • 14 Posts
    Does MaxiGallerySolo not support two calls on one page?
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: doze at Jun 09, 2006, 03:57 PM

      The user inputs are filtered through htmlentities function, so it’s not possible. But just remove the htmlentities calls from the snippet and it will be. I guess it would be good to add a configurable parameter whether inputs are wanted to be converted to html entities or not..
      Great, that worked fine doze -- just left the calls on the places where description information was being put into title attributes and removed it from the other locations and all seems well, at least when using lightboxv2.
        • 7923
        • 4,213 Posts
        I just added a note to the first post that conserns the issues that are discussed here.

        It says:

        Quote from: doze at Apr 06, 2006, 05:25 PM

        You have to call the snippet on an uncached page using "cached" snippet call i.e [[MaxiGallery]], because the automated javascript/css registration in MODx requires this for now. If you don’t call it this way, sometimes when you view the lightbox enabled galleries, the pictures may just open in a new window instead of the lightbox.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 33372
          • 1,611 Posts
          Or alternatively you can add the css and javascript files to a template and just comment that part of the snippet out.
            "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
            • 7923
            • 4,213 Posts
            Quote from: ZAP at Jun 12, 2006, 03:45 PM

            Or alternatively you can add the css and javascript files to a template and just comment that part of the snippet out.
            Yes, true. But different display modes use different css/js-scripts.. it’s better to use the snippet as is, because it includes only files that are needed for the set display mode. BTW, this is a known little issue with the regClient stuff. The "fix" is coming from OpenGeek and the problem might get fixed in 0.9.5.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 33372
              • 1,611 Posts
              Yep that’s true. But in my case I was using a modified snippet that randomized the order of the images and popped them up as a slideshow. Dynamic snippets like this won’t work as desired when cached, so it’s good to know that there’s an alternative method.
                "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
                • 7923
                • 4,213 Posts
                I didn’t meant that the snippet would be need to run cached, just the opposite, prevent it from running cached at any situation. I wrote that you have to call the snippet on an uncached page using "cached" snippet call. When the document is uncached, the snippets will also run uncached even if they are called like [[this]].

                But still, you can just as easily comment out the css/js registering code from the snippet and put them in your template if you need, as long as you know what you’re doing wink


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 7923
                  • 4,213 Posts
                  Wanna use picture commenting in MaxiGallery?

                  It’s very easy to implement with the awesome Replix snippet (look for demo here). Here’s the steps to get it done:


                  • 1. Create/Modify Replix form template and remove the action from the form tag
                  • 2. Create a snippet called "GetPictureID" and use this at the snippet code:
                    [list]
                    [li]return $_GET[’pic’];
                  [/li]
                  [li]3. Create new chunk called "GalleryReplix" and add this to the chunk:

                  • [!Replix? &tagid=[[GetPictureID]] &tplForm=`name_of_replix_form_chunk`!]
                  [/li]
                  [li]4. Create a document what is used to show gallery pictures. [/li]
                  [li]5. Add the MaxiGallery and chunk calls to the target document:

                  • [[MaxiGallery? &is_target=`1`]] {{GalleryReplix}}
                  [/li]
                  [li]6. Create a Gallery what uses the document above for target to display the pics:

                  • [[MaxiGallery? &picture_target=`insert_target_document_id_here`]]
                  [/li]
                  [li]7. View results (add some pics to the gallery first smiley)[/li][/list]

                  PS. This will be a bit easier and even more flexible when the templating of MaxiGallery is done.. (and that should be soon).


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 6726
                    • 7,075 Posts
                    Thanks a lot Doze for this one, PhotoBlogging with MODx... what next grin ?
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l'outil id
                      • 33337
                      • 3,975 Posts
                      Wanna use picture commenting in MaxiGallery?
                      WOW!!!

                      Thanks man! Thats great!
                        Zaigham R - MODX Professional | Skype | Email | Twitter

                        Digging the interwebs for #MODX gems and bringing it to you. modx.link

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