Customised search widget added directly to page template, su

Posted by Community Admin on 04-Aug-2018 14:48

Customised search widget added directly to page template, submit button doesn't worked in hea

All Replies

Posted by Community Admin on 20-Apr-2015 00:00

I have customised the search widget which works fine when widget is dropped ​into pages, but if the code bel​ow is added directly to a page template the submit button doesn't work.

            <!-- SEARCH -->
         
             <%@ 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="sfsearchTxt" placeholder="Site search" />
                  <asp:Button  ID="searchButton" runat="server"  OnClientClick="return false;" Text="<%$Resources:SearchResources, Search %>" CssClass="sfsearchSubmit" />
    
          
            </fieldset>
        
            <!-- // SEARCH -->

Posted by Community Admin on 23-Apr-2015 00:00

Hello,

Try referencing the whole modified widget on the template instead of just a textbox and a button. From the information below it is hard to tell if you have the full widget functionality on the template or not.

Regards,
Atanas Valchev
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
 

Posted by Community Admin on 23-Apr-2015 00:00

Thanks Atanas,

I resolved the problem by adding a placeholder to the head​er in the .master page, then added the widget to the template.

Jacquie

This thread is closed