Try Now
More in this section

Forums / General Discussions / Making small modifications to the search widget

Making small modifications to the search widget

3 posts, 0 answered
  1. Jos
    Jos avatar
    2 posts
    04 Jan 2013
    10 Jul 2014
    Link to this post


    I'm trying to make a few adjustments to the standard search widget (example: placeholder text). According to this post: http://www.sitefinity.com/developer-network/forums/general-discussions-/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" />

    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?


  2. Jos
    Jos avatar
    2 posts
    04 Jan 2013
    10 Jul 2014 in reply to Jos
    Link to this post

    After some fiddling I tried rebooting the webserver (IIS) and this seems to do the trick! 

  3. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    19 Apr 2017
    15 Jul 2014
    Link to this post
    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.

    Nikola Zagorchev
    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
3 posts, 0 answered