Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Andersen 1447 posts 2196 karma points MVP
    Sep 11, 2009 @ 08:45
    Kim Andersen
    0

    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 :)

  • jonok 297 posts 657 karma points
    Sep 11, 2009 @ 10:16
    jonok
    0

    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?

  • Kim Andersen 1447 posts 2196 karma points MVP
    Sep 11, 2009 @ 10:28
    Kim Andersen
    0

    Yeah that was just what I was looking for. Thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft