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
    Is the chunk run with ditto?

    EDIT: and what is the exact ditto call?


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 4749
      • 623 Posts
      No, there is no ditto call involved. I am using AJAX to pull the page in. Could that be an issue somehow? It does look fine when you’re not logged in. So, there’s no way to manage the gallery. I always get the error when I log in, but it works fine when not logged in.
        The MODx has you...
        Utah Web Design
        • 25663 MODX Staff
        • 12,272 Posts
        Try disabling the Quickedit plugin.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 4749
          • 623 Posts
          Disabled QuickEdit with no luck. It was a good thought though. I probably wouldn’t have thought of it.
            The MODx has you...
            Utah Web Design
            • 7923
            • 4,213 Posts
            Quote from: cbaone at Nov 29, 2007, 02:40 PM

            No, there is no ditto call involved. I am using AJAX to pull the page in. Could that be an issue somehow? It does look fine when you’re not logged in. So, there’s no way to manage the gallery. I always get the error when I log in, but it works fine when not logged in.
            Umm.. the [+id+] is Ditto place holder.. so of course it’s not parsed then.. So now I cannot understand how you have setuped it?

            You have to replace the [+id+] in the chunk with actual document id, if it’s not run through Ditto.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 4749
              • 623 Posts
              I have four containers that have documents(projects) inside them:
              Commercial
              - Project 1
              - Project 2
              - Project 3
              Residential
              Civic & Public
              Development

              I have a portfolio page with links to each container (gallery). When a user clicks on the Commercial link it will take them to the Commercial page with a list of the projects. When they click on the project list (built with wayfinder) it will load the project page via AJAX.

              You can see it in the manager if you log in again. But here are my calls:

              Commercial Gallery page:
              <div id="portfolio_menu">
                [!Wayfinder?&startId=`11`&outerTpl=`outerAjaxTpl`&rowTpl=`innerAjaxTpl`!]
              </div>
              <div id="right_box">
              <-- THIS IS WHERE THE AJAX PUTS THE PROJECT PAGE -->
              </div>
              


              Project Page built with a chunk {{gallery}} :
              [!MaxiGallery? &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` &manage_target=`[+id+]`!]
              [!MaxiGallery? &pictureTpl=`mgPicture` &display=`pictureview`!]
              


              That’s about it.

              EDIT: I think it might work if I take out the &manage_target=`[+id+]` I’ll try it.
              EDIT: Yeah, it’s working, but still getting double galleries when I manage pictures.

                The MODx has you...
                Utah Web Design
                • 4749
                • 623 Posts
                Doze,
                I can live with the double galleries and such, but I would like to know if there’s a way to fix all the galleries showing up in slimbox. I’ve got a services page with a tabbed javascript. There are four tabs that show the services with a small gallery of only four images in each. I can manage them just fine separately, but when I click on one of the images and it opens up in slimbox it shows a total of 16 images. So, from one gallery I can view all the images on the page. If I can I would like them to be completely separate - showing only the four images when clicked.

                THANKS!

                Also, I have a link to the ’complete’ gallery at the bottom of each mini-gallery of the services. How can I get that to link to the main gallery?
                  The MODx has you...
                  Utah Web Design
                  • 7923
                  • 4,213 Posts
                  Quote from: cbaone at Nov 29, 2007, 04:14 PM

                  EDIT: I think it might work if I take out the &manage_target=`[+id+]` I’ll try it.
                  EDIT: Yeah, it’s working, but still getting double galleries when I manage pictures.
                  Yes, like I said, you cannot use the [+id+] placeholder there, because it’s a ditto placeholder and doesn’t serve any purpose in this case either. You need to create a new document what you use for picture management (what has &is_target=`1` in the snippet call, or if you already have one you can use that if the picture filter settings / sizes are common and set that document id to the &manage_target parameter.

                  Quote from: cbaone at Nov 30, 2007, 01:21 PM

                  There are four tabs that show the services with a small gallery of only four images in each. I can manage them just fine separately, but when I click on one of the images and it opens up in slimbox it shows a total of 16 images. So, from one gallery I can view all the images on the page. If I can I would like them to be completely separate - showing only the four images when clicked.
                  You need to do a custom galleryPictureTpl (with the default galleryPictureTpl contents) and find following from the template:
                  rel="lightbox[maxigallery]"
                  

                  and replace it with:
                  rel="lightbox[gal[+maxigallery.picture.gal_id+]set]"
                  


                  Quote from: cbaone at Nov 30, 2007, 01:21 PM

                  Also, I have a link to the ’complete’ gallery at the bottom of each mini-gallery of the services. How can I get that to link to the main gallery?
                  Just do a link normally to the document, eg. <a href="[~documentidhere~]"... or if you have the link in maxigallery outer template for example, you can do <a href="[~[+maxigallery.pageinfo.id+]~]"..


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 4749
                    • 623 Posts
                    Doze,
                    You’ve done it again! Thanks a million! You’ve bee a great help to me. Replacing:

                    rel="lightbox[maxigallery]"

                    with:

                    rel="lightbox[gal[+maxigallery.picture.gal_id+]set]"

                    did the trick. The other stuff I sorted out differently because the tabbed galleries weren’t pulling the four images from the main galleries I wanted them to link to. So, I just put a doc id in the chunk and that will work!

                    Thanks again Doze, you don’t disappoint!


                      The MODx has you...
                      Utah Web Design