For our implementation, we will add autocompletion to the search field in the search module's block. But rather than running a search for each autocompletion request, we will build a scaled-down list of terms that we will define. Only that list of terms will be used for autocompletion.
If this were a book on PHP development, I would suggest writing some server-side code to collect and analyze search engine data, and then use that information to pre-populate an autocompletion field. But we can't readily get that information. So we will try another approach.We will use a Drupal taxonomy as the source for our suggestions.
Taking this approach, we will allow content creators to add keywords to articles. Those keywords will then be used for autocompletion.
Was this article helpful?
Struggling to Optimize Your Site for the Search Engines? Uncover What You Need to Know to Perform Basic SEO on Your Site, and Help Get it Listed in the Powerful Search Engines. Are YOU Ready to Climb Your Way Up The Search Engine Rankings and Start Getting the FREE Traffic You're Looking For? Hundreds of places claim they can give you top rankings, but wouldn't you rather just learn how to do it on your own so you can repeat the process on any future site you build?