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.

2 Answers 2

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

1
  • Thank you, I also did this using autocomplete and its callback using FAPI
    – FAB
    Commented May 22, 2017 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?

1
  • 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
    Commented Feb 22, 2017 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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