ke_search Suggest Extension

Features

  • AJAX-based autocomplete function for ke_search
  • Returns 5 relevant search terms from the 3rd letter onwards for which there are results.
  • Uses the existing ke_search index.
  • TYPO3 v12/v13 compatible

1) Installation

Installation using Composer

The recommended way to install the extension is by using Composer. In your Composer based TYPO3 project root, just do

composer require mrg/ke-search-suggest
Copied!

Installation as extension from TYPO3 Extension Repository (TER)

Download and install the extension with the extension manager module. The following extensions must be installed before: ke_search.

2) Minimal setup

  1. Include the static TypoScript of the extension.
  2. Customize Fluid Template (e.g. SearchForm.html):
<input type="search" 
   id="kesearch-suggest" 
   class="form-control" 
   name="tx_kesearch_pi1[sword]" 
   value="{searchword -> f:format.raw()}"
   placeholder="Suchbegriff" 
   {f:if(condition: '{extConf.allowEmptySearch} == 0', then: 'required')} 
   minlength="{extConf.searchWordLength}" 
   aria-label="Suchbegriff" 
   aria-describedby="submit-button" />
<f:asset.script identifier="kesearch-suggest" src="EXT:ke_search_suggest/Resources/Public/JavaScript/autosuggest.js" />
<f:asset.css identifier="kesearch-suggest" href="EXT:ke_search_suggest/Resources/Public/CSS/autosuggest.css" />
Copied!