I have categories “New Cars” and “Used Cars” and can specify that search tool will search only in selected category.
K2 Tools module allows you (among other things) to “Select module functionality” as “Search Box” and then “Restrict search results to one or more categories”.
Similar functionality can be achieved by manually altering the search URL: add parameter “categories” and the number of the category. For instance categories=3
www.example.com/component/k2/search.html?searchword=blue%20car&categories=3&format=html&t=&tpl=search
How can this functionality be achieved by “Extra field” type “Searchable Labels”? It searches the whole site. It makes the URL
www.example.com/categoy/categoy/search.html?searchword=blue%20car
So I’m getting results from categories “New Cars”, “Used Cars” and “Uncategorised”.
How can this “Extra field” (type “Searchable Labels”) be adjusted to meet my needs? To display result only from selected categories.
I hope I provided enough information that you’ll be able to understand what I’m trying to achieve.
Thank you