Skip to content

modxcms/SimpleSearch

main
Switch branches/tags
Code
This branch is 69 commits ahead, 114 commits behind splittingred:develop.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

MODX SimpleSearch

SimpleSearch version MODX version requirements

Installation

Simply install it through the top menu Extras > Installer and search for SimpleSearch. Install it from there. After installing it, it is recommended to clear your MODX cache, through the top menu Manage > Clear Cache.

Upgrade risks

This is currently alpha software and is only compatible with MODX 3.x and higher. This has been tested on basic search queries, but you may encounter problems with more advanced setups.

Autosuggest

A processor has been provided for retrieving a list of search suggestions based on a Template Variable containing a comma delimited list of search terms. You can configure the TV to use by setting simplesearch.autosuggest_tv, which can either be the TV name or id.

You can use the example (requires jQuery) code below for retrieving a list of search suggestions.

$('.simplesearch-search-form input[type="text"]').on('keyup', function () {
    var value = $(this).val();

    $.ajax({
        url         : '/assets/components/simplesearch/connector.php?action=web/autosuggestions&search=' + value,
        dataType    : 'JSON',
        complete    : function (result) {
            console.log(result.results);
        }
    });
});

Bugs and feature requests

We value your feedback, feature requests and bug reports. Please issue them on Github..

Need help? Contact MODX Help Desk

About

A simple search component for MODx Revolution

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.9%
  • Smarty 1.1%