0
votes

Is there a way to assign a specific view to search results in drupal ?

I'm currently using custom_search module.

When a customer search for products, I would like to display the search results with the same template of the catalog (the taxonomy view).

I've also tried to use "Search terms" filter, which works.. but it disappear when I'm visiting other pages, because it is part of the view.

thanks

1

1 Answers

0
votes

The best way in general to learn about theming is to grab the Devel and Devel Themer contrib modules and enable them. This will add a little widget to your pages that will let you inspect what template files are being used to render each page. So you could then go to your search results page, get the name of the template file you need to create and then basically copy across the code from the template that you want to mimic.

However, if you're happy with using views the answer to your other question can be used to put the search form on any page.