+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitefinity conflicts with Google's Custom Search

Sitefinity conflicts with Google's Custom Search

4 posts, 0 answered
  1. Peter Boardman
    Peter Boardman avatar
    3 posts
    Registered:
    06 Jan 2010
    29 Jan 2010
    Link to this post
    Hi,

    I have implemented a Google Custom Search box on our website (www.icsdp.org/home.aspx). It works really great and displays the search results on a separate page (www.icsdp.org/results.aspx)...

    ...SO LONG AS...

    I disable the following form (by commenting it out)...

        <body>
            <!-- <form id="mainform" runat="server"> -->

                ...my website's code would go here...

            <!-- </form> -->
        </body>

    Unfortunately, the is the <form> that surrounds the page's content and is necessary in order for the SiteFinity CMS editor to function. In other words, I can't edit page content when this form is hidden. However, when the form is hidden Google's Custom Search box works perfectly.

    I have tried all sorts of things but I can't have both working at the same time.

    Is this <form> tag really nesessary?
    Do I have another way to make this work?

    Thanks for you're help (in advance)

    regards,

    Peter Boardman


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Jan 2010
    Link to this post
    Hello Peter Boardman,

    The form tag is required with runat="server" attribute for aspx pages. I think that http://www.google.com/cse/ is the most proper place to see why the search makes conflicts with forms.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nancy
    Nancy avatar
    35 posts
    Registered:
    10 Apr 2012
    04 May 2012
    Link to this post
    Does anyone know if this is still a problem with Sitefinity 5? I'm guessing it would be since the whole page is still a form.I am just getting started on a site and I know the client is going to want to use Google Custom Search.
  4. Nancy
    Nancy avatar
    35 posts
    Registered:
    10 Apr 2012
    14 May 2012
    Link to this post
    Here is an article about adding Google search to a .net site. It is not specific to Sitefinity, but it should work if you can create a control or add the code to your master page.  http://www.evontech.com/login/topic/4971.html
Register for webinar
4 posts, 0 answered