Tell us what you are trying to do?
The website helps someone with a problem find support ('resources').
Each resource post is matched to a taxonomy term under a problem category e.g. "addiction" "debt".
I would like the search bar to operate like this:
- User types in three characters to search bar e.g. "add" and addiction, or other problem terms that contain that, are shown as suggested terms (sorry, don't know if this is the right terminology). Note - only problem terms should be visible, not resource title or other information.
- If the user clicks on one of those suggested terms, they are taken to an archive page which shows all resources that connect to that problem term.
However, if the user searches some random term, bypassing the suggested terms, they are taken to a page which shows suggested terms above resources.
I am not quite sure where to start/ how to achieve this.
Any advice is welcome!
Hi, it sounds like you're looking for a search input type called "autosuggest" or "typeahead", like you would find in the Google search bar. There's no search input field types like that in the Toolset software, so it would require some advanced custom code to implement something exactly like that. Without a JavaScript API for Views filters, there's not much documentation or support references available here on the site for creating such a feature. The filter options available are plain text, checkboxes, select fields, and radio button inputs. I can help you implement any of those in a standard search View for posts of some kind.