Page 1 of 1

Search results template question

Posted: Wed Sep 19, 2007 7:55 pm
by Hollywood
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

Posted: Wed Sep 19, 2007 8:02 pm
by RonnyK
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

Re: Search results template question

Posted: Wed Sep 19, 2007 8:13 pm
by Hollywood
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

Posted: Wed Sep 19, 2007 8:21 pm
by RonnyK
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