{"id":19902360,"url":"https://github.com/vardot/autocomplete_deluxe","last_synced_at":"2026-05-10T21:54:05.390Z","repository":{"id":26318728,"uuid":"91326826","full_name":"Vardot/autocomplete_deluxe","owner":"Vardot","description":"The Autocomplete Deluxe module is an enhanced autocomplete element that uses the JQuery UI autocomplete. It will also implement a widget for taxonomy. This module does not require any 3rd party jQuery libraries.","archived":false,"fork":false,"pushed_at":"2024-10-03T17:07:01.000Z","size":1613,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"2.0.x","last_synced_at":"2025-01-11T21:17:36.258Z","etag":null,"topics":["drupal"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vardot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-15T10:46:07.000Z","updated_at":"2024-10-03T17:06:44.000Z","dependencies_parsed_at":"2024-04-02T11:41:57.776Z","dependency_job_id":"d65b3fd1-0cd7-425c-9c9d-9b42aa91448d","html_url":"https://github.com/Vardot/autocomplete_deluxe","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardot%2Fautocomplete_deluxe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardot%2Fautocomplete_deluxe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardot%2Fautocomplete_deluxe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardot%2Fautocomplete_deluxe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vardot","download_url":"https://codeload.github.com/Vardot/autocomplete_deluxe/tar.gz/refs/heads/2.0.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241329421,"owners_count":19944985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal"],"created_at":"2024-11-12T20:17:51.247Z","updated_at":"2026-05-10T21:54:00.369Z","avatar_url":"https://github.com/Vardot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autocomplete Deluxe\n\nThe Autocomplete Deluxe module is an enhanced autocomplete element that uses the\nJQuery UI autocomplete. It will also implement a widget for taxonomy. This\nmodule does not require any 3rd party jQuery libraries.\n\nFor a full description of the module, visit the\n[project page](https://www.drupal.org/project/autocomplete_deluxe).\n\nSubmit bug reports and feature suggestions, or track changes in the\n[issue queue](https://www.drupal.org/project/issues/autocomplete_deluxe).\n\n\n## Table of contents\n\n- Requirements\n- Installation\n- Configuration\n- FAQ\n- Maintainers\n\n\n## Requirements\n\nThis module requires no modules outside of Drupal core.\n\n\n## Installation\n\nInstall as you would normally install a contributed Drupal module. For further\ninformation, see\n[Installing Drupal Modules](https://www.drupal.org/docs/extending-drupal/installing-drupal-modules).\n\n\n## Configuration\n\nTo set up a field named Tags which uses an Autocomplete Deluxe widget to set\nvalues for that field from the Tags taxonomy, do the following:\n\n - Navigate to Administration \u003e Modules and enable the Autocomplete Deluxe\n   module.\n - Navigate to Administration  \u003e Structure \u003e Content types and select manage\n   fields of the content type you wish to edit.\n - Add a new field of \"Term reference\" named \"Tags\". Select the Widget Type\n   `\"Autocomplete Deluxe\"` in the drop down menu. Save.\n - Select the Tags vocabulary.  Save field settings.\n - Customize or keep the default Autocomplete Deluxe settings for the field.\n   Save settings.\n\nNow when new content is added the Tags widget allows editors to enter\nexisting tags as well as create new ones.\n\n\n## Faq\n\n**Q: Can I use the Autocomplete Deluxe widget as a Views exposed filter?**\n\n**A:** TWhy yes, yes you can!  First, add the field as a traditional exposed\n   Autocomplete filter in your view.  Then, create a custom module (see\n   `https://www.drupal.org/docs/7/creating-custom-modules` if you have\n   never written a module before), where your .module file contains\n   something like the following:\n```\n   function MY_MODULE_form_alter(\u0026$form, Drupal\\Core\\Form\\FormStateInterface\n     $form_state, $form_id) {\n     // Variables specific to your View.\n     $my_exposed_filter_field = 'field_term_ref';\n     $my_target_bundle = 'test_vocab';\n\n     if ($form_id == 'views_exposed_form' \u0026\u0026\n       isset($form[$my_exposed_filter_field . '_target_id'])) {\n       $selection_settings = array(\n         'target_bundles' =\u003e array($my_target_bundle =\u003e $my_target_bundle),\n         'sort' =\u003e array('field' =\u003e '_none'),\n         'auto_create' =\u003e (BOOL) 0,\n         // Even though we've specified '0' for 'auto_create', it seems that\n         // a value for 'auto_crteate_bundle' is required for this to work.\n         'auto_create_bundle' =\u003e 'tags',\n         'match_operator' =\u003e 'CONTAINS',\n       );\n       $target_type = 'taxonomy_term';\n       $selection_handler = 'default:taxonomy_term';\n       $data = serialize($selection_settings) . $target_type .\n         $selection_handler;\n       $selection_settings_key = Drupal\\Component\\Utility\\Crypt::hmacBase64(\n         $data,\n         Drupal\\Core\\Site\\Settings::getHashSalt()\n       );\n       $route_parameters = [\n         'target_type' =\u003e $target_type,\n         'selection_handler' =\u003e $selection_handler,\n         'selection_settings_key' =\u003e $selection_settings_key,\n       ];\n       $url = Drupal\\core\\Url::fromRoute(\n         'autocomplete_deluxe.autocomplete',\n         $route_parameters,\n         ['absolute' =\u003e TRUE]\n       )-\u003etoString();\n\n       $form[$my_exposed_filter_field . '_target_id'] = array(\n         '#type' =\u003e 'autocomplete_deluxe',\n         '#autocomplete_deluxe_path' =\u003e $url,\n         '#selection_settings' =\u003e $selection_settings,\n         '#multiple' =\u003e TRUE,\n         '#target_type' =\u003e $target_type,\n         '#selection_handler' =\u003e $selection_handler,\n         '#limit' =\u003e 10,\n         '#size' =\u003e 60,\n         '#new_terms' =\u003e 0,\n         '#min_length' =\u003e 0,\n         '#delimiter' =\u003e ',',\n         '#not_found_message_allow' =\u003e 0,\n         '#not_found_message' =\u003e \"The term '@term' will be added.\",\n       );\n     }\n   }\n```\n\n\n## Maintainers\n\n- Edward Chan - [edwardchiapet](https://www.drupal.org/u/edwardchiapet)\n- Klaus Purer - [klausi](https://www.drupal.org/u/klausi)\n- Mohammed Razem - [Mohammed J. Razem](https://www.drupal.org/u/mohammed-j-razem)\n- Mike Priscella - [mpriscella](https://www.drupal.org/u/mpriscella)\n- Rajab Natshah - [Rajab Natshah](https://www.drupal.org/u/rajab-natshah)\n- Sebastian Gilits - [sepgil](https://www.drupal.org/u/sepgil)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardot%2Fautocomplete_deluxe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvardot%2Fautocomplete_deluxe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardot%2Fautocomplete_deluxe/lists"}