We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4966
    • 143 Posts
    Trying to get this to work but ----it doesn’t, well doesn’t work as expected. I had a new installation of Modx 0.9.5 and I followed the instruction here -

    http://modxcms.com/MaxiGallery-PhotoBloggin-0.html

    to get the two working. I’m good up until step 6? where does this go?

    Up to step 5 I have a page with [[MaxiGallery?&is_tartet=’1’]] {{GalleryJot}} all on the same page. What I want is the add comments to a picture.

    charlie-imac
      • 7923
      • 4,213 Posts
      Those instructions are little bit outdated but it can be still done with that way. But you could do it in the maxigallery templates now too. And there is also one thing you need to know about. Jot and MaxiGallery both use a class called Chunkie, but Jot doesn’t check when it includes it that is it already loaded or not. So what needs to be done is that you open the jot.class.inc.php file and find this line:

      include_once($path . ’/includes/chunkie.class.inc.php’);

      and replace it with:

      if (!class_exists(’CChunkie’)) {
      include_once($path . ’/includes/chunkie.class.inc.php’);
      }

      Then to your question. In step 6 you put the snippet call to the document where you want your gallery to be in. The document what you create in step 4-5 is a document to show the pictures and should be probably in a unpublished container or hidden from menu, that is if you don’t want it to show up. Also, check your snippet call in the document that you created in step 4-5, in your above post you have the parameter name wrong and the value should be in backtics ` not in quotes ’.

      But there is another option how to set up picture commenting in MaxiGallery v0.5+. You can put the Jot snippet call in to the pictureTpl. Here’s how to do it:

      1. Create a new chunk with the default maxigallery pictureTpl template code from maxigallery/templates/picturetpl.html, call it mgPictureTplComment for example.

      2. Then in that template, add the following jot call (you can modify any of the parameters, but keep that &tagid):

      [[Jot? &subscribe=`1` &tagid=`[+maxigallery.picture.id+]` &pagination=`10` &badwords=`something` &customfields=`name,email` &canmoderate=`Jot Moderators` &trusted=`Jot Trusted Users`]]

      3. Create the gallery document, set it to be uncached, and call MaxiGallery using (+add any parameters you want):

      [[MaxiGallery? &pictureTpl=`mgPictureTplComment`]]

      And that should be it. Much easier, I think.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 4966
        • 143 Posts
        Your way was much easier. Oh, I had to search to find the backtic on my keyboard.

        Thanks,
        charlie-imac
        • Was a bit of a shock to me to find the key next to the 1 was §/±, while the `/~ key is next to the left shift key on my iBook. Weird. I still tend to get a lot of ````````` when going for the left shift key!. I’ve been touch-typing about 70WPM for over 30 years, and it’s hard to teach old dogs new tricks undecided
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org