Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert Lindsay 2 posts 22 karma points
    Jul 05, 2012 @ 18:09
    Robert Lindsay
    0

    Searching Umbraco from an external site

    HI all,

    I have a situation where I need to be able to search an Umbraco site from an external (non Umbraco) site and display the search results with links to the Umbraco page on the external (non Umbraco) site,  is this at all possible ?

     

    Regards

  • Mike Chambers 621 posts 1203 karma points c-trib
    Jul 05, 2012 @ 18:25
    Mike Chambers
    0

    take a look at webservices in umbraco..

    http://our.umbraco.org/forum/developers/api-questions/7561-How-to-write-webservice-for-umbraco

    If that's a bit to overkill...

    Maybe if you are using xlstsearch on your umbraco site, you could create an alternate template for it just to give the raw search results and just interogate from you other site by passing the relevant querystring params to xsltsearch... (HttpWebRequest for instance if in asp.net on your other site? [http://www.codeproject.com/Articles/18034/HttpWebRequest-Response-in-a-Nutshell-Part-1])

    it's not complex... it accepts /search.aspx?search=test&page=2 for instance....

    and you could alter the xsltsearch.xslt to include your umbraco domain in it's links... or do that code/jquery wise on your other site....

    What's that old addage about skinning a cat? ;-)

     

     

  • Robert Lindsay 2 posts 22 karma points
    Jul 06, 2012 @ 10:26
    Robert Lindsay
    0

    Thanks Mike, i think the Web Service route would probably be the best bet,  at least i can re-use that with out any fuss if needs be.

     

    Cheers

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies