Possible to show searchform on masterpage, and searchresults on search.aspx
I'd like to know if it is possible to show my search-form, only the input-field, and then show the results on a different page?
I can put a form around the macro in my master-template with action="/search.aspx?search=+". Then the form wil off course show the results on the search.aspx. On that page I can set searchBoxLocation="none" so that the search-box won't be visible more that once.
But my problem is to remove the results from the master-template, and only show them on the search.aspx. Just like the Umb2Search does.
Possible to show searchform on masterpage, and searchresults on search.aspx
I'd like to know if it is possible to show my search-form, only the input-field, and then show the results on a different page?
I can put a form around the macro in my master-template with action="/search.aspx?search=+". Then the form wil off course show the results on the search.aspx. On that page I can set searchBoxLocation="none" so that the search-box won't be visible more that once.
But my problem is to remove the results from the master-template, and only show them on the search.aspx. Just like the Umb2Search does.
I hope you understand my question :)
You can put your search-form anywhere in your templates (either as a new macro or just put the HTML straight in):
<form method="post" action="/search.aspx">
<input name="search" type="text" value="Search" id="search-field" />
</form>
And you can then remove the search-form from your search results macro. I think thats what you're after?
Yeah that was just what I was looking for. Thanks :)
is working on a reply...