<![CDATA[ AjaxSearch and Maxigallery - My Forums]]> https://forums.modx.com/thread/?thread=74357 <![CDATA[AjaxSearch and Maxigallery]]> https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412422
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?]]>
xenchu Feb 17, 2012, 08:48 AM https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412422
<![CDATA[Re: AjaxSearch and Maxigallery]]> https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412555 xenchu Feb 19, 2012, 12:24 AM https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412555 <![CDATA[Re: AjaxSearch and Maxigallery]]> https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412497 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.]]>
xenchu Feb 18, 2012, 05:41 AM https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412497
<![CDATA[Re: AjaxSearch and Maxigallery]]> https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412474 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!]]>
xenchu Feb 17, 2012, 11:48 PM https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412474
<![CDATA[Re: AjaxSearch and Maxigallery]]> https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412442 ]]> breezer Feb 17, 2012, 12:50 PM https://forums.modx.com/thread/74357/ajaxsearch-and-maxigallery#dis-post-412442