Making small modifications to the search widget - General Discussions - General Discussions - Progress Community
 General Discussions

Making small modifications to the search widget

  • 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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items