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