AjaxSearch 1.9.2-finale

AjaxSearch 1.9.2-finale

Released Jan 24, 2011 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 (1190 downloads)
3 Likes, 0 Dislikes
Report this Extra
Downloads: 21,973
License: GPLv2
Discuss Extra
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`!

Version Released Author Downloads
13 Versions 2 Contributors 21,997 Downloads
1.9.1-finale Sep, 05 2010 coroico 1,063
1.9.0-finale Jun, 08 2010 coroico 620
1.8.5-finale Apr, 07 2010 coroico 554
1.8.4-final Oct, 27 2009 coroico 179
1.8.3-final Sep, 01 2009 coroico 684
1.0.0 Jun, 16 2009 kylej 4,188
1.6.0 Jun, 16 2009 kylej 2,837
1.7.0 Jun, 16 2009 coroico 1,679
1.7.1 Jun, 16 2009 coroico 2,246
1.8.0 Jun, 16 2009 coroico 1,417
1.8.1 Jun, 16 2009 coroico 1,575
1.9.2-pl Dec, 31 1969 coroico 3,770