metamodels / attribute_levensthein
MetaModels attribute for maintaining a search index with levenshtein support
Installs: 2 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 9
Forks: 1
Open Issues: 4
Type:contao-bundle
Requires
- php: ^7.1
- contao-community-alliance/dc-general: ^2.1.0
- contao/core-bundle: ^4.4.8
- metamodels/core: ^2.1
- symfony/dependency-injection: ^3.3 || ^4.1.12
- symfony/http-kernel: ^3.3 || ^4.4.13
Requires (Dev)
- dev-master / 2.1.x-dev
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0.0
- dev-hotfix/abandoned_sth
- dev-hotfix_2.1/switch_to_github-actions
- dev-dependabot/add-v2-config-file
- dev-hotfix/fix_unittest_add_cover
- dev-hotfix/ignore_long_class_name
- dev-hotfix/fix_sql_query_issue_17
- dev-hotfix/wayback_composer_json_to_levensthein
- dev-support/2.0
This package is auto-updated.
Last update: 2022-11-27 18:56:35 UTC
README
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.