Making small modifications to the search widget
Hi,
I'm trying to make a few adjustments to the standard search widget (example: placeholder text). According to this post: www.sitefinity.com/.../style-the-search-box I need to make an default template:
<%@ Control Language="C#" %>
<%@ Register TagPrefix="sitefinity" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" %>
<fieldset id="main" class="sfsearchBox" runat="server">
<asp:TextBox ID="searchTextBox" runat="server" CssClass="sfsearchTxt1" />
<asp:Button id="searchButton" runat="server" Text="<%$Resources:SearchResources, Search %>" OnClientClick="return false;" CssClass="sfsearchSubmit" />
</fieldset>
and map this to the control. like this:
HostType: "Telerik.Sitefinity.Services.Search.Web.UI.Public.SearchBox"
LayoutTemplatePath: "~/App_Data/Sitefinity/WidgetTemplates/SearchBox.ascx"
When I modify the SearchBox.ascx with for example an other css class nothing changes. Am i forgetting something?
After some fiddling I tried rebooting the webserver (IIS) and this seems to do the trick!
Hi Jos,
I am glad you have resolved the issue. Please, keep in mind that registering new controls and widgets or making changes in their server code requires restart of the application.
Regards,
Nikola Zagorchev
Telerik