We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi,

    I did some changes to a Maxigallery call displaying an array of thumbnails
    and the "Manage pictures" button disappeared.

    [!MaxiGallery? &max_thumb_size=`80x60` &max_pic_size=`480x360` &pics_per_row=`3` &pics_per_page=`15` &galleryPictureTpl=`@FILE:/assets/snippets/maxigallery/templates/galleryPictureTpl_vignettes.tpl` &galleryOuterTpl=`@FILE:/assets/snippets/maxigallery/templates/galleryOuterTpl_vignettes.tpl` &manageButtonTpl=`@FILE:/assets/snippets/maxigallery/templates/managebuttontpl.html` &js=`assets/snippets/maxigallery/js/galerie_realisation.js` !]


    Before the problem occured, I had added the galleryOuterTpl parameter in order to remove the default <ul>...</ul> markups.
    The chunk used for galleryOuterTpl has this content: [+maxigallery.pictures+]

    I also removed the <li>...</li> markups in the galleryPictureTpl.

    After the problem occured, I tried setting the button explicitely with this manageButtonTpl chunk.
    <form action="[+maxigallery.urlaction+]" method="post" name="activateadminform">
     [+maxigallery.hiddenfields+]
     <input type="submit" value="[+maxigallery.strings.manage_pictures+]" />
    </form>


    Thanks for any help.
      • 19980 ☆ A M B ☆
      • 275 Posts
      hi

      yeah it happens, i could suggest clean cash from manager panel, then your browser’s cash.

      --
      If didn’t help: try to view your page in another brouser like opera or other. Better not preview docs and edit them in the same browser if working with maxigallery.
        modx and ecommerce pro
        • 7923
        • 4,213 Posts
        The manage pictures button has disappeared, because you have removed it’s placeholder from the galleryOuterTpl. Check the default template and available placeholder from maxigallery wiki page.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 15001
          • 697 Posts
          Thanks. Both answers are right.

          The [+maxigallery.managebutton+] button is responsible for the "Manage pictures" to display, but its also important to clear the cache on both sides.

          Now, the manage button works fine. As Doze suggested, the template I use for the thumbnails comes from galleryoutertpl.html:
          [+maxigallery.managebutton:isnot=``:then=`
          
           <center>[+maxigallery.managebutton+]</center>
           <br />
           
          `+]
          [+maxigallery.pictures+]

          Cheers,

          J.