We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49170
    • 6 Posts
    Quote from: jerry325 at Dec 12, 2014, 03:11 PM

    Not sure I can help but I will try. I completely missed the http://forums.modx.com/thread/91148/getimages-missing-argument-in-modx-parsechunk thread as it was not posted in http://forums.modx.com/thread/81713/support-comments-for-getimages and would not have been much help there as I have never used this add-on in that way. Back to your question though: could you send me the snippit call you are using?

    Tryed different variation of snippet, but none worked for me.
    Still have same errors.

    [[!getImages? 
    &getImages_Folder=`assets/photos` 
    &getImages_Ext =`*.jpg`
    &getImages_Tpl =`example_getImages_Page_Tpl`
    ]]
      • 14020
      • 75 Posts
      Quote from: tajdik at Dec 12, 2014, 04:30 PM
      Quote from: jerry325 at Dec 12, 2014, 03:11 PM

      Not sure I can help but I will try. I completely missed the http://forums.modx.com/thread/91148/getimages-missing-argument-in-modx-parsechunk thread as it was not posted in http://forums.modx.com/thread/81713/support-comments-for-getimages and would not have been much help there as I have never used this add-on in that way. Back to your question though: could you send me the snippit call you are using?

      Tryed different variation of snippet, but none worked for me.
      Still have same errors.

      [[!getImages? 
      &getImages_Folder=`assets/photos` 
      &getImages_Ext =`*.jpg`
      &getImages_Tpl =`example_getImages_Page_Tpl`
      ]]

      This is just the standard settings. I don't even know why you would be getting the parse chunk error??? Is this snippit call the only thing in the document? Is this web accessible so that I could take a look at it?
        • 49170
        • 6 Posts
        Quote from: jerry325 at Dec 12, 2014, 04:45 PM

        This is just the standard settings. I don't even know why you would be getting the parse chunk error??? Is this snippit call the only thing in the document? Is this web accessible so that I could take a look at it?

        Yep, its only snippet on page. And text.
        Temporarily available here: http://tajdus.cz/work/MODXhacienda/hotel/foto-ubytovani.html

        I tried gallery and cliche, but only cliche work normaly without problems. So im thinking about some MODX setting or bad Hosting setting. But im Newbie to MODx, so im unable to find problem. :-(

        Edit: Tried clean install, and getting same errors... [ed. note: tajdik last edited this post 9 years, 3 months ago.]
          • 14020
          • 75 Posts
          Quote from: tajdik at Dec 13, 2014, 12:13 PM
          Quote from: jerry325 at Dec 12, 2014, 04:45 PM

          This is just the standard settings. I don't even know why you would be getting the parse chunk error??? Is this snippit call the only thing in the document? Is this web accessible so that I could take a look at it?

          Yep, its only snippet on page. And text.
          Temporarily available here: http://tajdus.cz/work/MODXhacienda/hotel/foto-ubytovani.html

          I tried gallery and cliche, but only cliche work normaly without problems. So im thinking about some MODX setting or bad Hosting setting. But im Newbie to MODx, so im unable to find problem. :-(

          Edit: Tried clean install, and getting same errors...
          Hard to tell what is going on from this. If this is on a test bed can I get access to the back end? Or could you place the snippit call on a blank document with no template with just the words begin and end on each side of it? If you need to send me a temp password you can private message me.
            • 14020
            • 75 Posts
            OK, I had a look around and found a few things off. To use a folder from the snippit call you must comment out the line:
            $folder = isset($_GET['folder']) ? $_GET['folder'] : ''; // use to get folder from URL
            and uncomment the line:
            // $folder = $modx->getOption('getImages_Folder',
            The basic install assumes you will be using getFolders to retrieve and create a menu page.
            Next you need to duplicate the example templates and remove "example_" from them so they will have the name the snippet expects.
            There was/is some kind of permission issue preventing both getImages and getFolders from seeing the folders or images under assets huh Still don't know what that's about. I moved the folder to the root and it functions properly from there. You will of course need to edit the 2 templates to make the photos appear the way you like on you site. I left the test pages and a bare bones template on the site so you could see what I was doing. Let me know if I can be of any further assistance. I am certainly no super programmer and many aspects of Modx are still well beyond me but I keep plugging along and I have been helped many times by the members of these forums so I always try to do my part to help others.
              • 49170
              • 6 Posts
              Thanx a lot Jerry. I just need to show images from folder. Nothing more. So its ok now. Thanx again.

              Now i need to generate thumb images. Any idea? smiley
                • 14020
                • 75 Posts
                Quote from: tajdik at Dec 14, 2014, 02:25 AM
                Thanx a lot Jerry. I just need to show images from folder. Nothing more. So its ok now. Thanx again.

                Now i need to generate thumb images. Any idea? smiley
                I use Easy Thumbnails, place them in a dotted sub-folder then let the link point to the full size image. It's not automatic but I have better control.
                  • 49170
                  • 6 Posts
                  Quote from: jerry325 at Dec 14, 2014, 05:29 PM

                  I use Easy Thumbnails, place them in a dotted sub-folder then let the link point to the full size image. It's not automatic but I have better control.

                  Thanx again Jerry. I just created thumbnails manualy in FastStone Photo resizer, and created thumb folder with same directory tree as normal images. And added thumb/ before image tag.

                  <li><a class="th" data-lightbox="galerie" href="[[+imgLink]]"><img src="thumb/[[+imgLink]]" /></a></li>


                  Works great and its so simple, that even I can do it smiley When I get some experience with MODx, i will fix this to automatic thumb creation (I think phpThumb can do it, but now i dont know how).
                    • 14020
                    • 75 Posts
                    Quote from: tajdik at Dec 14, 2014, 07:15 PM
                    Quote from: jerry325 at Dec 14, 2014, 05:29 PM

                    I use Easy Thumbnails, place them in a dotted sub-folder then let the link point to the full size image. It's not automatic but I have better control.

                    Thanx again Jerry. I just created thumbnails manualy in FastStone Photo resizer, and created thumb folder with same directory tree as normal images. And added thumb/ before image tag.

                    <li><a class="th" data-lightbox="galerie" href="[[+imgLink]]"><img src="thumb/[[+imgLink]]"></a></li>


                    Works great and its so simple, that even I can do it smiley When I get some experience with MODx, i will fix this to automatic thumb creation (I think phpThumb can do it, but now i dont know how).
                    Yep, that's why I made it. I've been looking into that as well and will post here when and if I get it working the way I like. I use a .thumb sub directory so that it doesn't show up with getFolders
                    and my thumbnails all have a prefix of lr_
                    <a href="[[+imgLink]]" target="_blank">
                    <img src="[[+path]].thumbs/lr_[[+imgFile]]" alt="[[+imgLink]]" />
                    </a>
                      • 38793
                      • 18 Posts
                      Hi,

                      I seem to have a problem which is similar to what tajdik was having. i have tried the solutions posted so far and getImages still doesn't display anything, it is not outputting any template code let alone images.

                      I want to display images on my homepage. i have a getResources call which then displays a template for the corresponding post, in this case a photo gallery post.


                      getResources call:

                      ....
                      <div id="content_inner">
                      <div id="plinth_wrapper">
                      [[!getResources?
                      &showHidden=`1`
                      &parents=`3,11,14`
                      &tplCondition=`template`
                      &conditionalTpls=`{"6":"frontpage-news-post","7":"frontpage-photos-post","9":"frontpage-events-post"}`
                      &tpl=`frontpage-generic-post`
                      &tvPrefix=`tv.`
                      &includeTVs=`1`
                      &processTVs=`1`
                      &depth=`4`
                      &limit=`6` 
                      ]]
                      </div> <!-- plinth_wrapper -->
                      </div> <!-- content_inner END -->
                      ....
                      


                      getImages call:

                      ....
                      <div class="cp_post_container">
                      
                      [[!getImages? 
                      &getImages_Folder=`assets/photos` 
                      &getImages_Ext=`*.jpg`
                      &getImages_Tpl=`getImages_Tpl`
                      &getImages_Limit=`6`
                      &getImages_Offset=`8`
                      &getImages_Width=`150`
                      &getImages_Height=`100`
                      &getImages_Border=`2`
                      &getImages_Class=`img`
                      ]]
                      
                      </div> <!-- cp_post_container END -->
                      ....
                      


                      below is a template i got from this thread just to try it out.

                      getImages_Tpl:

                      <div class="photos">
                      <a href="[[+imgLink]]" target="_blank">
                      <img title="[[+image]]" src="[[+path]].thumbs/lr_[[+imgFile]]" alt="[[+imgLink]]" width="[[+width]]" height="[[+height]]" />
                      </a>
                      </div>
                      




                      i am using:
                      modx 2.3.2-pl
                      getImages 2.3.1-pl

                      i get these errors in the log:

                      [2015-02-08 10:44:01] (ERROR @ /modx-2.3.2-pl/connectors/index.php) Resource URI 2011/ already exists for resource id = 100; skipping duplicate resource URI for resource id = 214
                      [2015-02-08 10:44:01] (ERROR @ /modx-2.3.2-pl/connectors/index.php) Resource URI 2012/ already exists for resource id = 101; skipping duplicate resource URI for resource id = 215
                      [2015-02-08 10:44:01] (ERROR @ /modx-2.3.2-pl/connectors/index.php) Resource URI 2013/ already exists for resource id = 108; skipping duplicate resource URI for resource id = 216


                      This is my PHP:

                      PHP Version 5.3.3



                      If you need any other information, i will try to give it.

                      Tim