metamodels/attribute_levensthein

This package is abandoned and no longer maintained. The author suggests using the metamodels/attribute_levenshtein package instead.

MetaModels attribute for maintaining a search index with levenshtein support

2.1.4 2022-11-27 18:33 UTC

README

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month

Levensthein

The repository has a corrected name Levenshtein and can now be found under https://github.com/MetaModels/attribute_levenshtein.

The levensthein attribute maintains an index of keywords across other attributes which can be searched using the levensthein algorithm.

NOTE: This uses the autocomplete plugin from jquery-ui. When installing this extension, you must include jquery-ui from CDN as the Contao bundled version only includes the accordion plugin.

To do this, simply add and include a template named j_jquery-ui.html5 in your page layout with the following contents:

<script src="//code.jquery.com/ui/<?= $GLOBALS['TL_ASSETS']['JQUERY_UI'] ?>/jquery-ui.min.js"></script>

WARNING: Ensure to remove the corresponding line from j_accordion.html5 if you are using accordions on your page as otherwise the two will collide.