We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    What doubled galleries? link? and what do not show manager button? and how they are created? exact snippet calls etc..


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 4749
      • 623 Posts
      Doze,
      If you can remember I have three different usages of MaxiGallery. I get random Parse Errors when I try to manage the Homepage gallery and can’t manage the services gallery. I can live with the Portfolio page showing double ,but it’s annoying. I upgraded to 0.9.6.1 and it didn’t fix the doubled gallery issue. (It shows fine in the browser, but when logged in and you click on ’manage pictures’ button it shows two identical galleries.) Here is a brief explanation of all the galleries and their issues.

      1. Homepage - Simple timed slideshow using smoothgallery. [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` !] PROBLEM: Not showing up.

      2. Services Page - Four images w/ custom template using slimbox, called by Ditto in a tabbed javascript. [[MaxiGallery? &manage_target=`[+id+]` &view_gallery=`[+id+]` &display=`embedded` &embedtype=`slimbox` &galleryOuterTpl=`containerTpl` &galleryPictureTpl=`picTpl`]] PROBLEM: Manage pictures button not displaying.

      3. Portfolio Page - Ajax driven. Calling the HTML and displaying it inside a certain div. The target galleries are running the javascript image switcher from the wiki. Here’s the call for this:[!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs`!][!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!] PROBLEM: Displaying double. (Can this be remedied with a &manage_target parameter?)

      Numbers 2 & 3 work like I want them too for the end-user. Number 2 can’t be managed the way I was hoping. Number 3 is just doubled up when managing it. Number 1 is very frustrating for me. I think at this point I’m just over looking something. I’ve used it many times before.
        The MODx has you...
        Utah Web Design
        • 7923
        • 4,213 Posts
        Quote from: cbaone at Nov 27, 2007, 11:27 AM

        1. Homepage - Simple timed slideshow using smoothgallery. [!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` !] PROBLEM: Not showing up.
        It seems that the smoothgallery js file is version 2.0, but the maxigallery version you are using do not produce 2.0 syntax to the smoothgallery... so you probably have files from multiple versions currently.. Could you try switching back to the resource repository files if possible. And revert all files to that version, eg. delete assets/snippets/maxigallery/ folder and replace it with the files that you get from resource repository.

        Quote from: cbaone at Nov 27, 2007, 11:27 AM

        2. Services Page - Four images w/ custom template using slimbox, called by Ditto in a tabbed javascript. [[MaxiGallery? &manage_target=`[+id+]` &view_gallery=`[+id+]` &display=`embedded` &embedtype=`slimbox` &galleryOuterTpl=`containerTpl` &galleryPictureTpl=`picTpl`]] PROBLEM: Manage pictures button not displaying.
        Do you have the [+maxigallery.managebutton+] placeholder in your custom galleryOuterTpl? If you dont, the button will not show up..

        Quote from: cbaone at Nov 27, 2007, 11:27 AM

        3. Portfolio Page - Ajax driven. Calling the HTML and displaying it inside a certain div. The target galleries are running the javascript image switcher from the wiki. Here’s the call for this:[!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs`!][!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!] PROBLEM: Displaying double. (Can this be remedied with a &manage_target parameter?)
        So In this case, only the picture management is seen as doubled? Add the &manage_target parameter to the call and do the management in some other document.. then it will show as single picture management.



          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 4749
          • 623 Posts
          Doze,
          Thanks for the help, but still not working. Now all the "Manage Pictures" buttons are there, but when I click them nothing happens - it doesn’t do anything. No gallery management shows up, it just kind of disappears. Do you know what that might be?

          BTW, the &manage_target parameter did help. But, the homepage with smoothgallery is still not working. I replaced the V2.0 files with the ones from the repository, but the JS is still writing that inline style in the <head>
          <style type="text/css">
          			#myGallery1
          			{
          			width: 0px;
          			height: 0px;
          			z-index:5;
          			display: none;
          			}
          			</style>
          <link rel="stylesheet" href="/assets/snippets/maxigallery/smoothgallery/css/jd.gallery.css" type="text/css" media="screen" />
          	<script type="text/javascript" src="/assets/snippets/maxigallery/smoothgallery/js/mootools.js"></script>
          	<script type="text/javascript" src="/assets/snippets/maxigallery/smoothgallery/js/jd.gallery.js"></script>
          <link rel="stylesheet" href="/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" />
          

          Why is it writing that? I’ve never seen that before. It shouldn’t be writing that when it adds the JS/CSS files
            The MODx has you...
            Utah Web Design
            • 33372
            • 1,611 Posts
            Quote from: cbaone at Nov 28, 2007, 11:00 AM

            Doze,
            Thanks for the help, but still not working. Now all the "Manage Pictures" buttons are there, but when I click them nothing happens - it doesn’t do anything. No gallery management shows up, it just kind of disappears. Do you know what that might be?
            I haven’t read this whole thread, but the problem you describe sometimes happens when you’re logged into a different domain name than the button/form is submitting to. For example, if you’re logged into the MODx Manager at yourdomain.com and the form has a base href of www.yourdomain.com. In that case when you click the Manage Pictures button the form is submitted to a domain name that doesn’t recognize you as logged in, and so the button just disappears.

            The solution in this case is just to make sure that you log into the Manager using the exact same domain name as the one your website uses for these pages.
              "Things are not what they appear to be; nor are they otherwise." - Buddha

              "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

              Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
              • 4749
              • 623 Posts
              ZAP,
              That’s a fantastic insight. I had no idea that it was that sensitive. However, my problem is not the button anymore. The button is there, but when I click on the button, it, along with the everything else on the page disappears. So, basically, all that’s visible is just the template code. Everything in the [*content*] area is gone. Bye, bye, MaxiGallery. I really can’t understand it.
                The MODx has you...
                Utah Web Design
                • 7923
                • 4,213 Posts
                Quote from: cbaone at Nov 28, 2007, 11:00 AM

                Doze,
                Thanks for the help, but still not working. Now all the "Manage Pictures" buttons are there, but when I click them nothing happens - it doesn’t do anything. No gallery management shows up, it just kind of disappears. Do you know what that might be?
                Hmm.. sounds odd.. do you have &manage_target parameter in that call that possibly points to a document that doesn’t have maxigallery in it?

                Quote from: cbaone at Nov 28, 2007, 11:00 AM

                But, the homepage with smoothgallery is still not working. I replaced the V2.0 files with the ones from the repository, but the JS is still writing that inline style in the <head>
                --snip--
                Why is it writing that? I’ve never seen that before. It shouldn’t be writing that when it adds the JS/CSS files
                Like I said, the CSS is needed for the smoothgallery view type and is all ok. I would suggest to replace all maxigallery files with the ones that are in resource repository, not just smoothgallery files.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 4749
                  • 623 Posts
                  Doze,
                  I am very dense. There wasn’t a MG call in the document. I am so sorry to have wasted your time on that issue. But, I still have a problem. sad &manage_target has worked for the most part. But, for the pages that I’m pulling in via AJAX are not parsing correctly. Here’s the error:
                  « `[+id+]` is not numeric and may not be passed to makeUrl() »

                  In the portfolio gallery, there is a chunck {{gallery}} that has the MG call in it for the thumbs and pic on same page (from wiki tutorial):
                  [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` &manage_target=`[+id+]`!]
                  [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!]

                  But, it seems that the &manage_target=`[+id+]` isn’t parsing when logged in. When I look at the page from another browser when I’m logged out it looks OK so far. But, when I’m logged in I"m getting that weird parse error. And in IE the portfolio page galleries don’t work right. The wiki tutorial here: http://wiki.modxcms.com/index.php/MaxiGallery#Picture_and_thumbnails_on_same_page is what’s not working in IE.
                    The MODx has you...
                    Utah Web Design
                    • 7923
                    • 4,213 Posts
                    Quote from: cbaone at Nov 28, 2007, 01:48 PM

                    « `[+id+]` is not numeric and may not be passed to makeUrl() »

                    In the portfolio gallery, there is a chunck {{gallery}} that has the MG call in it for the thumbs and pic on same page (from wiki tutorial):
                    [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` &manage_target=`[+id+]`!]
                    [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!]

                    But, it seems that the &manage_target=`[+id+]` isn’t parsing when logged in.
                    Change the snippet calls to cached in the chunk, eg. [[MaxiGallery...]] and have the ditto call be uncached (if the documents are displayed via Ditto, or change the document to be uncached. This is a know problem with PHx plugin.


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 4749
                      • 623 Posts
                      OK. I changed the calls to cached and the documents to uncached, but it still gives the same parse error. Any more ideas? Thanks. undecided

                        The MODx has you...
                        Utah Web Design