Search results template question
Search results template question
I have a site I'm working on where the homepage and secondary pages are very customized, and I noticed that when I search, the search function uses that page's template to render the search results in. What I want to do is when someone searches, set up a special stripped-down page template for the results to go into. How do I do this?
Re: Search results template question
You can give the parameter "resultpage=" in the calling of News. By using that page, the results will be opened in that content-page which can have a different template.
Ronny
Ronny
Re: Search results template question
Thanks Ronny, but I'm calling search, not News. Does the resultpage variable work with search also? Can you give me an example of syntax? Thanks for your help!
Re: Search results template question
Sorry for the type, resultpage is for SEARCH, news has detailpage as parameter.
{search resultpage="somepage"}
Check the help "Extensions -> Search -> Help" for other parameters.
this will open the results in the page called "somepage", I usually mark the page (options-tab) to be "not show in menu" to have it not in the menu. As long as it is active it can be called.
Ronny
{search resultpage="somepage"}
Check the help "Extensions -> Search -> Help" for other parameters.
this will open the results in the page called "somepage", I usually mark the page (options-tab) to be "not show in menu" to have it not in the menu. As long as it is active it can be called.
Ronny