Hi Shaun,
I'm not clear whether you are talking about the mojoportal search input for site search that is shown in the header of some skins or if you mean the google site search on the 404 page that is wired up by javascript.
I tested using the mojoportal search input by using the art41-bookheader skin which has the input and it did not work. The problem was that we cannot really process the postback and redirect while also returning the 404 status code which that page was designed to do.
So I fixed it just now with a javascript solution for the redirect and you can fix it in your copy of PageNotFound.aspx in the root.
The existing javascript is like this to enable the google search helper
<script type="text/javascript">
var GOOG_FIXURL_LANG = '<%= CultureCode %>';
var GOOG_FIXURL_SITE = '<%= SiteNavigationRoot %>';
</script>
add to that script block to include the extra stuff as shown here which looks for the mojo search input and button:
<script type="text/javascript">
var GOOG_FIXURL_LANG = '<%= CultureCode %>';
var GOOG_FIXURL_SITE = '<%= SiteNavigationRoot %>';
var searchInput = $(".searchpanel input[type=text]");
var searchButton = $(".searchpanel input[type=submit]");
if ((searchInput) && (searchButton)) {
searchButton.click(function () {
window.location = GOOG_FIXURL_SITE + "/SearchResults.aspx?q=" + searchInput.val();
return false;
});
}
</script>
On the demo site the google search does not work because it is only searching the demo site not the web, but it has no results because I have told google NOT to index the demo site at all via the robots.txt file because it would just mess up the seo for this site to have our demo site come up in search results. So even if matching content was entered in the google search on the demo 404 page it will not find anything because it is not indexed by google.
Thanks,
Joe