Copied to clipboard

Flag this post as spam?

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


  • Robert J. Bullock 386 posts 405 karma points
    May 31, 2013 @ 22:26
    Robert J. Bullock
    0

    Querying Umbraco Site "Externally"

    Ok, here's a strange one... I have a web service I'm working on that is outside of Umbraco, but within the same ASP.NET application. I.e., it's not running in the Umbraco context. So how do I find a node based on some property in this web service? Do i query the database directly?

  • Robert J. Bullock 386 posts 405 karma points
    May 31, 2013 @ 22:32
    Robert J. Bullock
    0

    In other words, my code doesn't have access to the normal Umbraco context as in a macro of page...

  • Andreas Iseli 150 posts 427 karma points
    Jun 03, 2013 @ 11:17
    Andreas Iseli
    0

    There are two ways to achieve this.

    1) You may set the AspNetCompatibility Mode of the web service, then the UmbracoContext will be available

    2) You can create the UmbarcoContext manually using the newely opened API in v6 regarding the following feature request: http://issues.umbraco.org/issue/U4-1717

Please Sign in or register to post replies

Write your reply to:

Draft