0

How can I use single search box with autocomplete for all the users on site and all the content of particular content type like blogs.

Thank you.

4

No need to create two views this can be achieved by modifying the query if you are using views. You can easily alter the query, if you are using the custom form then you can use Form API with autocomplete and in autocomplete callback you can do whatever you want. I have solved this using the autocomplete and its callback using FAPI

  • Thank you, I also did this using autocomplete and its callback using FAPI – FAB May 22 '17 at 5:02
0

If you are using Exposed filters you can use the Better Exposed Filters module, this allows you to combine serveral exposed filters into one filter.

How this works is described here: combine several exposed filters into one exposed (search) form?

  • I can create 2 views , first one for content (blog) and second for all users. Can I create a single exposed filter for both blog title and user name with autocomplete using Better exposed filter ? – FAB Feb 22 '17 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.