Search results template question

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Search results template question

Post 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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Search results template question

Post 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
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Re: Search results template question

Post 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!
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Search results template question

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”