We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1139
    • 8 Posts
    First off I’d like to say thanks to anyone working on MODx.  It’s by far my favourite choice of CMS.

    Now to an issue sadly.

    I’ve implemented MaxiGallery using the code below with no problems:

    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &galleryOuterTpl=`gallery_outer_tpl` &galleryPictureTpl=`gallery_thumb_tpl` &pic_use_watermark=`1` !]   


    I’ve recently moved the whole site to a new domain.  Everything is working apart from my MaxiGallery ’Mange Pictures’ button is now no longer appearing.  I’ve tried to track down the root cause and have looked into the following, all with no success:

    - Does it know Administrator is logged in?  By outputting SESSION vars I can confirm this is so.  Also tried accessing the domain with/without www prefix.
    - Checked file permissions on the appropriate folders, all 0777

    Poking around inside some of the templates I spotted this code inside picturetpl.html:

    [+maxigallery.config.display:is=`pictureview`:then=`
    	[+maxigallery.managebutton:isnot=``:then=`
    
    		<center>[+maxigallery.managebutton+]</center>
    		<br />
    	
    	`+]
    `+]


    Could this be something to do with it?  I tried removing the conditional, as my display parameter is ’normal’ not ’pictureview’ but no joy.  If I explicitly set the display parameter to pictureview it does cause the button to appear, but I’ve been using the above call to MaxiGallery previously with no problems.

    The only way I’ve managed to get the ’manage pictures’ to appear is by actually putitng this line in maxigallery.php just after line 678, at least provong to myself that it generated it from the chunk correctly.

    echo $pictureTplData['managebutton'];


    Any help would be appreicated.  Apologies if this is an issue that’s been addressed previously. I did search but found nothing exactly like this.

    Regards,
    Alistair
      • 1139
      • 8 Posts
      Ok so a huge penny has just dropped, and I now feel very foolish for posting the above query.

      In my defence, I would say that I am at the tail end of 2 hours or more of debugging and the logic of what’s going on has taken this long to finally drop!

      In case it helps anyone else, this is my problem and solution


      • I am specifying my own ’outerTpl’
      • The chunk I wrote was NOT based on a copy of the original MaxiGallery outerTpl file - galleryoutertpl.html
      • One look in this html file shows all the code needed to show the manage pictures button
      • Once I added <center>[+maxigallery.managebutton+]</center> or similar into my own template chunk all is good

      Sorry for any inconvenience!
        • 3749
        • 24,544 Posts
        Thanks for reporting back and sharing your experience. It may help others. smiley
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting