I have a working website (asp.net 3.5) which I want to add some content managed pages, I want to install Umbraco on as a separated website and pull the data from it using the API.
All published data is stored in /AppData/umbraco.config, You can access this directly or create xml feeds by writing xslt-based macros.
If you're running your existing website as a different application i don't think you can use the API. If you can you could use the NodeFactory (http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-the-nodefactory) or Linq to Umbraco (http://our.umbraco.org/wiki/reference/api-cheatsheet/linq-to-umbraco)
If it's a seperate application, then as Chis says, I also doubt you'll be able to use the API, although all the published XML is available from the /App_Data/umbraco.config file - but if you don't want to read in the XML file, how about writing a webservice for your Umbraco site that utilizes the API ?
Alternatively have you considered putting your current application and Umbraco onto the same site ? it's possible to define appSetting values in the web.config (umbracoReservedUrls, umbracoReservedPaths) for your existing application, so that Umbraco will ignore these.
Are both these websites on the same server? If so you can most likely run them in the same IIS Site, then you can use the nodefactory as normal, Umbraco will ignore anything in the 'umbracoReservedPaths' directories
Integration with existing website
Hello,
I have a working website (asp.net 3.5) which I want to add some content managed pages,
I want to install Umbraco on as a separated website and pull the data from it using the API.
Which dll/s should I use and how?
Thanks,
Moshe.
All published data is stored in /AppData/umbraco.config, You can access this directly or create xml feeds by writing xslt-based macros.
If you're running your existing website as a different application i don't think you can use the API. If you can you could use the NodeFactory (http://our.umbraco.org/wiki/reference/api-cheatsheet/working-with-the-nodefactory) or Linq to Umbraco (http://our.umbraco.org/wiki/reference/api-cheatsheet/linq-to-umbraco)
Chris
Thanks, thas was very helpful.
How do I set the data source for the node factory? (url of the Umbraco site or the DB parameters to pull the data from)
Hi Moshesa,
If it's a seperate application, then as Chis says, I also doubt you'll be able to use the API, although all the published XML is available from the /App_Data/umbraco.config file - but if you don't want to read in the XML file, how about writing a webservice for your Umbraco site that utilizes the API ?
Alternatively have you considered putting your current application and Umbraco onto the same site ? it's possible to define appSetting values in the web.config (umbracoReservedUrls, umbracoReservedPaths) for your existing application, so that Umbraco will ignore these.
HTH,
Hendy
Are both these websites on the same server? If so you can most likely run them in the same IIS Site, then you can use the nodefactory as normal, Umbraco will ignore anything in the 'umbracoReservedPaths' directories
If not, (I have no idea if this will work) the Umbraco web.config uses this key
Rich
I got to learn to type faster! Didn't see your post Hendy :)
Thank you Hendy, the webservice was a great solution :-)
is working on a reply...