On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi,

    I'm trying to make search for pictures from maxigallery, and have a problem, i read this
    http://forums.modx.com/?action=thread&thread=39601&i=1
    and this
    http://forums.modx.com/index.php/topic,46257.msg272820.html#msg272820
    threads,
    and stuck at moment where the picture must shows up, but instead of it i have not processed snippet call:
    [!MaxiGallery? &pic_query_ids=`6` &galleryPictureTpl=`galleryPictureTpl`!]

    I try to search something about why the embedded maxigallery snippet call in resultTpl not processed, but no clue.

    Please tell me what i'm doing wrong?
    • Perhaps it is an issue of nested snippet tag parse order. If your outer snippet is uncached ex: [!outersnippet!], then use the cached call for the inner snippet ex: [[innersnippet]] (or vice-versa).
        xforum
        http://frsbuilders.net (under construction) forum for evolution
      • You're right!
        Now it works!
        here's my snippet calls:
        [!AjaxSearch? &ajaxSearch=`0` &showResults=`1` &whereSearch=`content|tv|maxigallery` &landingPage=`7` &showInputForm=`1` &tplResult=`withMaxigalleryResult`!]

        and inside withMaxigalleryResult chunk:
        [+as.gal_idShow:is=`1`:then=`
        [[MaxiGallery? &pic_query_ids=`[+as.gal_id+]` &galleryPictureTpl=`galleryPictureTpl`]]
        `+]

        Thank you very much for your help!
        • Hi, i have a problem again, now i'm trying to make this search with ajax mode.
          snippet call:
          [!AjaxSearch? &ajaxSearch=`1`  &showResults=`1` &whereSearch=`content|tv|maxigallery` &showInputForm=`1` &landingPage=`7` &tplAjaxResult=`withMaxigalleryResult`!]


          when in withMaxigalleryResult chunk snippet of maxigallery called uncached, like this:
          [+as.gal_idShow:is=`1`:then=`
            [!MaxiGallery? &pic_query_ids=`[+as.gal_id+]` &galleryPictureTpl=`galleryPictureTpl`!] 
          `+]

          the search works fine, but not showing pictures, just pages and this snippet call as text, like in my pervious try, but when i'm change it to cached version, it stops working. In console i have this response from query to index-ajax.php:

                        <html><head><title>MODx Content Manager  » </title>
                        <style>TD, BODY { font-size: 11px; font-family:verdana; }</style>
                        <script type='text/javascript'>
                        function copyToClip()
                        {
                          holdtext.innerText = sqlHolder.innerText;
                          Copied = holdtext.createTextRange();
                          Copied.execCommand('Copy');
                        }
                      </script>
                        </head><body>
                        <h3 style='color:red'>« MODx Parse Error »</h3>
                              <table border='0' cellpadding='1' cellspacing='0'>
                              <tr><td colspan='3'>MODx encountered the following error while attempting to parse the requested resource:</td></tr>
                              <tr><td colspan='3'><b style='color:red;'>« `` is not numeric and may not be passed to makeUrl() »</b></td></tr><tr><td> </td></tr><tr><td colspan='3'><b>Parser timing</b></td></tr><tr><td>  MySQL: </td><td><i>0.0185 s</i></td><td>(<i>2 Requests</i>)</td></tr><tr><td>  PHP: </td><td><i>1329565002.5499 s</i></td><td> </td></tr><tr><td>  Total: </td><td><i>1329565002.5684 s</i></td><td> </td></tr></table></body></html>


          It must be again something with the embedded maxigallery snippet call, without it search search with ajax mode works fine, but i don't know how to fix it.
          • Anybody?