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 ?
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....
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
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? ;-)
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
is working on a reply...