AjaxSearch 1.9.2-pl

AjaxSearch 1.9.2-pl

Released Dec 31, 1969 by coroico

This snippet creates a search box and display results.

A search term highlighting plugin has been included as well.

It could works in two modes:

AjaxSearch mode :

  • Search results are displayed in a popup window over the current page. Results are requested through an ajax request.
  • Multiple search options (one word, all words, exact phrase, no words) including live search
  • Available link to view all results in a new page when only a subset is returned
  • Full customization of the search result form and results
  • Log of search requests
  • Get Comments about search results from the end user
  • Uses the MooTools or jQuery js library for AJAX and visual effects

Non-ajaxSearch mode :

  • Search results displayed on a landing page
  • Multiple search options (one word, all words, exact phrase, no words)
  • Full customization of the search result form and results
  • Customize the paginating of results
  • Log of search requests
  • Get Comments about search results from the end user
  • Works without JS enabled
  • Designed to load only the required non-ajaxSearch code
Download 296kb (3278 downloads)
3 Likes, 0 Dislikes
Report this Extra
Downloads: 20,617
License: GNU General Public License (GPL)
Requires Evolution 1.0.x or greater
Supports mysql

Ajax and non-Ajax search that supports results highlighting

See:

  • ajaxSearch_version_192b.txt : release note with bugs fixed since 1.9.1
  • ajaxSearch_readme.txt : gobal presentation of AjaxSearch
  • CheatSheet : a quick overview of AjaxSearch parameters.
  • /documentation/migrationFrom185To190.txt : how to migrate from 1.8.5 to 1.9.0 (and then to 1.9.2)
  • Bugs & features tracker : http://bugs.modx.com/projects/evo
  • Demo site : http://www.evo.wangba.fr

Installation Instructions

Follow these steps to install this snippet:   

Copy the contents of the file snippet.ajaxSearch.php into a new snippet named AjaxSearch

  •     Create a directory named ajaxSearch under the assets/snippets folder.
  •     Open the ajaxSearch.js file and set the loading & close image path to an image you want to display while the search is working.
  •     Copy the files from the zip to the ajaxSearch folder.
  •     Add the snippet call like the following: [!AjaxSearch? &showResults=`0` &landingPage=`17` &showMoreResults=`1` &moreResultsPage=`17`!]
  •     Use the styles to customize the look of your output.
  •     Test and see the search working with AJAX
  •     Setup a new page (landingPage and moreResultsPage) with the snippet call to display all your results: [!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0`!]

1.9.2b and 1.9.2 differences:

AjaxSearch1.9.2 provided with Evo1.0.5 doesn't correct the AJAXSEARCH-82 issue.

And needs to add manually a debug directory if the debug mode is used.

These issues are corrected with AjaxSearch1.9.2b                           

The release 1.9.2b provide the correction of the following issues:

==== AJAXSEARCH-75 : exactphrase doesn't work when the value is passed thru snippet callSee http://modxcms.com/forums/index.php/topic,55236.0.html

==== AJAXSEARCH-76 : TV names not protected in sql requestSee http://modxcms.com/forums/index.php/topic,56696.msg330844.html#msg330844l

==== AJAXSEARCH-77 : where clause for search terms restriction when the searchstring is empty

==== AJAXSEARCH-78 : failed searched never loggedSee http://modxcms.com/forums/index.php/topic,53897.msg331714.html#msg331714

==== AJAXSEARCH-79 : tag list now interpreted as tv input list

==== AJAXSEARCH-80 : Incorrect strip function for MODx tagsSee http://modxcms.com/forums/index.php/topic,57332.msg331855.html#msg331855

==== AJAXSEARCH-81 : orderBy issue when orderBy field not in sc.content table

==== AJAXSEARCH-82 : can't define configuration file name with "@FILE:" prefixSee http://bugs.modx.com/issues/3533

==== AJAXSEARCH-83 : Searchstring not escaped when logging search request and resultsSee http://modxcms.com/forums/index.php/topic,57916.0.html

No new features are provided with this release.

Version Released Author Downloads
13 Versions 2 Contributors 20,641 Downloads
1.9.2-finale Jan, 24 2011 coroico 286
1.9.1-finale Sep, 05 2010 coroico 1,003
1.9.0-finale Jun, 08 2010 coroico 583
1.8.5-finale Apr, 07 2010 coroico 505
1.8.4-final Oct, 27 2009 coroico 140
1.8.3-final Sep, 01 2009 coroico 633
1.0.0 Jun, 16 2009 kylej 4,155
1.6.0 Jun, 16 2009 kylej 2,794
1.7.0 Jun, 16 2009 coroico 1,650
1.7.1 Jun, 16 2009 coroico 2,210
1.8.0 Jun, 16 2009 coroico 1,372
1.8.1 Jun, 16 2009 coroico 1,541