Hi,
I have made a website with a home page that is a different design to the rest of the site, and doesn't have a content section. When you use the search box, it just refreshes the page and doesn't take you to the search results page - yet this works fine on the rest of the site.
Does it just refresh the page and put the search results on the page you're currently on? That seems a bit odd - I would like it to take the user to a search results page each time - is this possible?
[SOLVED] Search results not showing
[SOLVED] Search results not showing
Last edited by antony_s on Tue Jul 07, 2009 10:21 am, edited 1 time in total.
Re: Search results not showing
Perhaps I should be clearer - I have a search field at the top of every page. Should I just have a separate Search Page?
Re: Search results not showing
The default search action does indeed load the results into the content of the current page.
You can redirect the search results to a specifc page though using the 'resultpage' parameter.
So, for example if you create a page with an alias of 'search-results' then you can put {search resultpage="search-results"} into your template and your results will be shown in the new page.
s.
You can redirect the search results to a specifc page though using the 'resultpage' parameter.
So, for example if you create a page with an alias of 'search-results' then you can put {search resultpage="search-results"} into your template and your results will be shown in the new page.
s.
Re: Search results not showing
Brilliant! Thank you for this - works great 

Re: [SOLVED] Search results not showing
Hello,
BTW, almost all tags/plugins/modules have an online help page describing their parameters. And the wiki has template samples.
Have fun with CMSms
Pierre M.
BTW, almost all tags/plugins/modules have an online help page describing their parameters. And the wiki has template samples.
Have fun with CMSms
Pierre M.
Re: [SOLVED] Search results not showing
Exactly what I was looking for, thanks!
So, I:
1) Created a page called "Search Results". Hide it from menu.
2) Call the module as
3) Commented out pointless "time taken" string out of results template
4) Changed settings to track phrases, and not single keywords.
So, I:
1) Created a page called "Search Results". Hide it from menu.
2) Call the module as
Code: Select all
{search resultpage="search-results"}
4) Changed settings to track phrases, and not single keywords.