Making small modifications to the search widget

Posted by Community Admin on 03-Aug-2018 09:18

Making small modifications to the search widget

All Replies

Posted by Community Admin on 10-Jul-2014 00:00

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?

 

Posted by Community Admin on 10-Jul-2014 00:00

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

Posted by Community Admin on 15-Jul-2014 00:00

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
 

This thread is closed