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

Forums / Developing with Sitefinity / External Search

External Search

3 posts, 0 answered
  1. Chris
    Chris avatar
    5 posts
    Registered:
    23 Jun 2011
    21 Sep 2011
    Link to this post
    Hi,

    I'm looking to hard code a search box that links to a national search engine outside of Sitefinity. When I add the code, everything shows up fine, but hitting 'Submit' on the seach keeps bringing me back to the same Sitefinity page. I've tested this code by itself and it works fine. How do I accomplish this?

    <form action="http://index.mil.ca/Srch.aspx?lang=en-CA" method="get" >
        <input class="searchbox" name="searchtxt" type="text" maxlength="800" size="20" />
        <br />
        <input class="searchbutton" type="submit" value="Search" name="Search" />
        <input type="hidden" name="language" value="en-CA" />
        <input type="hidden" name="Screen" value="Basic" />
        <input type="hidden" name="Action" value="Search" />
    </form>
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Sep 2011
    Link to this post
    Hi Chris,

    The form should be added outside of the main form that is in your template(.master page). I suppose this will fix the issue.

    Regards,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Chris
    Chris avatar
    5 posts
    Registered:
    23 Jun 2011
    21 Sep 2011
    Link to this post
    Thanks, that makes sense. Unfortunately it would then not be in the spot that I require it to be in.
Register for webinar
3 posts, 0 answered