split search bar from search results
Permalink
Hello. Is there any simple way (hardocde way would be the best) to split the search results from search bar? I have search bar in header part of the site and let display results to another page, but it shows the results under the search bar div. Any way to let search results display in another part of the page independently on placement with a search bar?
Thanks for the answer beforehand.
Thanks for the answer beforehand.
But what about the search block in my header? I want to keep it there as it is part of layout of whole site. Don't want a search result page to be different =.= Just want search results in a special div split from search block input ...
You can leave search block in the header. You want the results on the main section of a page?
When you've created the 'search-results' page point your header search box to that page.
When you've created the 'search-results' page point your header search box to that page.
It is pointed to the result page and this works fine, BUT there are 2 search blocks on the search result page if I have to have the results in main content area. (One in header, 2nd in Main). Problem is that the header one got the search results under itself when I try to search for something as well as they show in main area. And I don't want to be deleting the one from header.
Yes, sorry you need to change a couple of things.
If your search block is coded in your theme page, you can stop it from showing on the results page by un-checking it in the page defaults with 'setup on child pages'.
Couple more ideas here:
http://www.concrete5.org/community/forums/customizing_c5/search-res...
http://www.concrete5.org/community/forums/documentation_efforts/how...
If your search block is coded in your theme page, you can stop it from showing on the results page by un-checking it in the page defaults with 'setup on child pages'.
Couple more ideas here:
http://www.concrete5.org/community/forums/customizing_c5/search-res...
http://www.concrete5.org/community/forums/documentation_efforts/how...
Thank you, that and the post made my life way easier. *Thumbs Up*
Thank you.
Glad it got sorted
Glad it got sorted
Create page called 'search-results', click edit page, click edit 'Main' area, put in search block with 'search everywhere'.
All results should be the 'Main' area of your page.