We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30128
    • 78 Posts
    Hi, with 0.5 the display_manage is not optional. For normal galleries this is fine, I just use $manager_webusers=’’

    However for index sites where I only have a call like [!MaxiGallery?display=childgalleries!] the above doens’t work, and I’m forced to show the "manage pictures" stuff. It doesn’t seem logical to me to show "manage pictures" when the display is actually a listing of childgalleries.

    Shouldn’t the default be to not show manager when displaying childgalleries? Or is there some other setting I’m missing?
      • 19889
      • 616 Posts
      just create another outerGallery template for the childgalleries and take the button out there - I’ve done this and works fine.
        • 30128
        • 78 Posts
        How do I use another template?

        I’ve made a copy of galleryoutertpl.html -> childgalleryoutertpl.html in assets/snippets/maxigallery/templates.

        In the new file I removed this top section:
        [+maxigallery.managebutton:isnot=``:then=`
        
        	<center>[+maxigallery.managebutton+]</center>
        	<br />
        	
        `+]
        


        Now on my Galleri page I’ve changed the old childgallery call
        [!MaxiGallery?display=childgalleries!] 


        to this:
        [!MaxiGallery?display=childgalleries &galleryOuterTpl='[(site_url)]assets/snippets/maxigallery/templates/childgalleryoutertpl.html'!]


        But it doesn’t work. Now, no child galleries are shown.

        TJ
          • 11975
          • 2,542 Posts
          Hi the easiest way is to create a new chunk in the manager

          Name it and set the name as &outerTpl param value


          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 30128
            • 78 Posts
            Ok I created a chunk like this:
            [+maxigallery.childgalleries:isnot=``:then=` <div class="thumbs"> [+maxigallery.childgalleries+] </div> <br />
            
            `+]
            
            [+maxigallery.pagenumbers:isnot=``:then=`
            
              [+maxigallery.pagecount:isnot=`1`:then=`
            
                [+maxigallery.currentpage:is=`1`:then=`
            
                  [+maxigallery.strings.previous+] |
            
                `:else=`
            
                  <a href="[+maxigallery.previous_page_url+]">[+maxigallery.strings.previous+]</a> | `+]
            
                [+maxigallery.pagenumbers+]
            
                [+maxigallery.currentpage:is=`[+maxigallery.pagecount+]`:then=`
            
                  [+maxigallery.strings.next+]
            
                `:else=`
            
                  <a href="[+maxigallery.next_page_url+]">[+maxigallery.strings.next+]</a>
            
                `+]
            
                <br /><br /> `+] `+]
            
            [+maxigallery.embedtype:is=`smoothgallery`:then=` <div id="myGallery[+maxigallery.pageinfo.id+]"> [+maxigallery.pictures+] </div> `+]
            
            [+maxigallery.embedtype:isnot=`smoothgallery`:then=` <div class="thumbs"> [+maxigallery.pictures+] </div> `+]


            I then put this in my childgallery call:
            [!MaxiGallery?display=childgalleries &galleryOuterTpl='{{ChildGalleryOuter}}'!]


            This only puts out the whole call including what’s in the chunk as text where the child galleries should have been.

            Teaspoons people, please smiley I’m fairly new around here and just now made my first chunk smiley
              • 19889
              • 616 Posts
              just put it like this:

              [!MaxiGallery?display=childgalleries &galleryOuterTpl=’ChildGalleryOuter’!]
                • 30128
                • 78 Posts
                That removed the text output but I still don’t get any child galleries. Could you take a look at the code I posted above for my chunk?

                And yay, so a chunk can be used like that? Or is it MaxiGallery that have a special understanding of chunks and "resolves" the variable name and finds my chunk?
                  • 19889
                  • 616 Posts
                  try this:

                  [!MaxiGallery? &display=`childgalleries` &galleryOuterTpl=`ChildGalleryOuter`!]
                    • 30128
                    • 78 Posts
                    Thanks a thousand all of you wink That last tip from mmjaeger what was I needed to make it all work.

                    It’s an incredible experienced to get a problem solved as I type, very very fast response here smiley

                    TJ
                    --happy MODx’er
                      • 19889
                      • 616 Posts
                      you just need to put those parameters into backticks - that was your problem - I’m glad I could help