ASPX templates
Version 5.x > ASPX templates > Search Engine View modes: 
User avatar
Member
Member
cfonseca-lda.bna - 4/8/2011 2:12:57 AM
   
Search Engine
Hi,
I am developing the website for the National Bank, and made using Blank ASPX site "with custom layout, now I want to put on top of the site, in the master page, a text box to search the site so that when making the search results appear on a separate page.
can someone help me?

User avatar
Member
Member
kentico_michal - 4/8/2011 4:07:38 AM
   
RE:Search Engine
Hi,

You can use Smart search box web part on the master page to let users search for any text. This web part has SearchResultsPageUrl property which needs to be set to the URL of the page which displays the search results. This page must contain either Search results or Search dialog with results web parts.

<%@ Register Src="~/CMSWebParts/Search/cmssearchbox.ascx" TagName="cmssearchbox" TagPrefix="uc2" %>

<uc2:cmssearchbox ID="Cmssearchbox1" runat="server" SearchResultsPageUrl="~/SpecialPages/Search.aspx" />



Best regards,
Michal Legen