1

We can theme the search-result pages within search-results.tpl.php and search-result.tpl.php. But as far at it is possible to create multiple search pages(e.g. in apache solr module), is it possible to theme each page individually?

Example:

search-results--page1.tpl.php
search-results--page2.tpl.php
1
  • but when it displays one or the other? Commented Dec 12, 2015 at 16:56

1 Answer 1

1

It is possible.

Apache solr search module introduced tpl files for each search page.

If your custom search page's machine name is simple search, the search results tpl for that page will be named as

    search-results--apachesolr-search--simple-search.tpl.php

Replace simple-search with the machine name of your search page, with underscores converted to hyphens.

0

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.