Add autocomplete to the search block.

Created on 11 June 2024, 7 months ago

Problem/Motivation

Autocompletion functionality has been added to the Vertex module and will appear on the main search form.
Autocompletion does not appear on the core search block.

Proposed resolution

  1. Add an option on the autocompletion configuration to enable autocomplete on the core search block.
  2. Implement hook_form_search_block_form_alter(). In this hook, compare the search form #action with the path of all of the active search pages to determine which search page is being used. If the configuration of the matching search page has enabled autocompletion on the search block, then modify the form to add the autocomplete.
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tzura

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024