Download the PHP package rkl/autocomplete-for-indexedsearch without Composer
On this page you can find all versions of the php package rkl/autocomplete-for-indexedsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rkl/autocomplete-for-indexedsearch
More information about rkl/autocomplete-for-indexedsearch
Files in rkl/autocomplete-for-indexedsearch
Package autocomplete-for-indexedsearch
Short Description Adds autocomplete functionality to the TYPO3 indexed search field.
License GPL-2.0-or-later
Homepage https://github.com/RKlingler/autocomplete_for_indexedsearch
Informations about the package autocomplete-for-indexedsearch
TYPO3 Extension: Autocomplete for IndexedSearch
This extension adds autocomplete functionality to TYPO3 indexed search fields.
Features
- Supports TYPO3 12, 13 and 14
- No further dependencies
- Comes with limited styling for easy customizability
- Handles inputs with multiple words
- Accessible to keyboard users and screen readers
Installation
The recommended way to install Autocomplete for IndexedSearch is by using Composer:
Setup
1. Include the extension configuration
Option 1: Configuration via Site Set (requires TYPO3 v13 or later)
- Go to Site Management -> Sites
- Edit your site configuration
- In "Sets for this Site", include the "Autocomplete for Indexed Search" set.
Option 2: Configuration via TypoScript set
- Go to Site Management -> TypoScript
- Open your TypoScript template and click "Edit the whole TypoScript record"
- In the tab "Advanced Options", include the TypoScript set: "Autocomplete for Indexed Search (autocomplete_for_indexedsearch)"
2. Override the Form.html template from indexed_search
- Copy the partial from
EXT:indexed_search/Resources/Private/Partials/Form.htmlto your own site package, for example toEXT:my_sitepackage/Resources/Private/IndexedSearch/Partials/Form.html - Add your partial root path to the plugin configuration of Indexed Search in the TypoScript of your site package:
3. Place the ViewHelper to render suggestions
Add the ViewHelper <rkl:autocompleteSuggestions /> to your overridden Form.html. It renders the container in which suggestions will be displayed.
Add the ViewHelper wherever it suits your styling needs the best. Ideally it's placed close to the search field. Also remember to add the namespace RKL/AutocompleteForIndexedSearch/ViewHelpers like shown in the example.
ViewHelper attributes
The autocompleteSuggestions ViewHelper provides the following attributes to manipulate the behavior of the autocomplete suggestions:
| Attribute | Allowed values | Description |
|---|---|---|
| searchonclick | bool (0/1) |
defines whether to instantly submit the search form when a suggestion is clicked |
| minlength | int | minimum string length of the search term for autocompletion to start |
Optional: Add a Route Enhancer
For prettier autocomplete URLs you can add the autocomplete page type to your routeEnhancers:
MySQL fulltext search
This extension relies on the index tables created by indexed_search. It does not work if the "Use MySQL specific fulltext search" (basic.useMysqlFulltext) configuration is enabled.
Links
Sponsorships
PayPal: www.paypal.me/rukling
All versions of autocomplete-for-indexedsearch with dependencies
typo3/cms-extbase Version ^12.4 || ^13.4 || ^14.0
typo3/cms-fluid Version ^12.4 || ^13.4 || ^14.0
typo3/cms-frontend Version ^12.4 || ^13.4 || ^14.0
typo3/cms-indexed-search Version ^12.4 || ^13.4 || ^14.0