Multiple search results template?
-
Hey guys, I’m trouble with one thing.
I’m developing a glossary site, in which the first letters of the alphabet are the categories. No trouble here.
The client said that it should have a search form where the user is able to choose how the results are displayed:
a) only the excerpt, like the archive template;
b) the entire entries;
c) a list of all terms, displaying only the title.I have an idea: put a dropdown next to the text input and the search button, to let the user choose how the results will be displayed. At first, I think the search.php would check which one the user choosed and display the template to that choice.
My doubt is: how do I do this?
- The topic ‘Multiple search results template?’ is closed to new replies.