ezSearch comes with an example docType/template you can use, but if you have an existing docType/template you want to use, you can just copy the code from the example template file and add it to your own.
Sorry for the lat response, as of now I see that ezsearch is rendering the search results in the same page that the macro is placed, my question is how can I redirect the user, after he enters the search term and press "Enter", to a new page with only the search results in it.
Well ezSearch will respond to a querystring of ?q=yoursearchterm, so if you setup a search form on your other page, and have it send using GET to your ezSearch page, that should do the trick (if you like, you can configure the ezSearch macro to not show the search box too).
I am working on a project right now where we also used ezSearch form on master page, because we want it for every page. So what I did was added the searh field to the master page, and created a new document type for thesearch result page, e.g called SearchResult. So my input field look like this.
open search results in a new page
Hi
I am using ezSearch version 1.2 and I was wondering how can I render the search results in a different page.
Thanks
Hi Moran,
How do you mean?
ezSearch comes with an example docType/template you can use, but if you have an existing docType/template you want to use, you can just copy the code from the example template file and add it to your own.
Is that what you meant?
Matt
Hi
Sorry for the lat response, as of now I see that ezsearch is rendering the search results in the same page that the macro is placed, my question is how can I redirect the user, after he enters the search term and press "Enter", to a new page with only the search results in it.
Hi Moran,
Ahh, ok
Well ezSearch will respond to a querystring of
?q=yoursearchterm
, so if you setup a search form on your other page, and have it send using GET to your ezSearch page, that should do the trick (if you like, you can configure the ezSearch macro to not show the search box too).Hope that helpers.
Many thanks
Matt
Thanks a lot :)
Hi Matt,
I am rendering the ezSearch form on master page, because I want it for every page. But Results are always showing underneath.
Do you know how can I send the results to another page?
Thank you.
Kind Regards
Hi Simon,
I am working on a project right now where we also used ezSearch form on master page, because we want it for every page. So what I did was added the searh field to the master page, and created a new document type for thesearch result page, e.g called SearchResult. So my input field look like this.
And the root node variable is this, perhaps you will need to change it so it match your content structure.
Remeber to change the document type alias so it match your case.
In the template for the new search result page I added the macro for the ezSearch, and added the different params, that I want to seach in, like this:
Hope this helps,
/Dennis
You're Awesome Deenis :)
Thank you mate :)
Cheers.
Hi Dennis,
How can I modify the code so that I can modify the pagination to have such as: Showing 1 - 11 of 43 search results ?
Thank you Dennis.
Kind Regards
Hi Simon,
I think that you can do it like this:
Find this piece of code in the ezSearch.cshtml. probably in line 203.
Then you need to change it to this.
Hope this works for you.
/Dennis
Oh,
I forgor that helper.
Thank you Dennis. Also, I have changed the Resukts Dictionary in order to work as expected.
Thank you once again.
Cheers
is working on a reply...