Copied to clipboard

Flag this post as spam?

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


  • Vincent 75 posts 98 karma points
    Jul 11, 2011 @ 22:22
    Vincent
    0

    use umbraco data in non umbraco website

    We have a website built in umbraco 4.7 and would like to acces the data in a MVC website to build the same menu in both website, is it possible? What do I need to add in the web.config to do this? I already added reference to umbraco.dll, the data layer and some others but I'm not sure if we can do this?

    Thanks a lot for the help!

  • Thomas Enggaard Christensen 23 posts 48 karma points
    Jul 11, 2011 @ 22:33
    Thomas Enggaard Christensen
    1

    Im not sure that you can access the umbraco data by just referencing the dlls. The other website will be running in a different contect that the umbraco website.

    One thing you could do was to use the /base functionality in umbraco as a webservice, that exposes som xml with the content of the menu etc, and use that to build the menu on the mvc site.

    http://our.umbraco.org/wiki/reference/umbraco-base

  • Vincent 75 posts 98 karma points
    Jul 20, 2011 @ 17:25
    Vincent
    0

    Thanks Thomas, I will take a look at that solution but since we are using razor in both project I was hoping I could get an access to the data using the umbraco's dll...

Please Sign in or register to post replies

Write your reply to:

Draft