Umbraco Full Text Search

Jul 6, 2011 at 3:39 PM

First of all, I've been testing the Full Text Search for Umbraco package and it's great!

I do have one question/request:

Is it possible to add JUST the search form to a template? If so, what steps would I need to take to make that happen?

I'm new to Umbraco, so forgive me if there's an obvious answer...

Coordinator
Jul 6, 2011 at 6:36 PM

You mean a search box? Or am I reading that wrong?

To add a search box just add a form to any page that submits to the search page with an input named "search", so for example...

<form action="/my-search-page.aspx" method="get" class="fulltextsearch_form">
<div class="searchbox fulltextsearchbox">
<input type="text" value="" name="Search" class="fulltextsearch_searchbox textbox" id="search">
<input type="submit" value="Search" >
</div>
</form>

Point the action at the correct URL for your search page. If necessary change the various classes/ids to fit in with your design, and when the form is submitted the user should see their search results.