CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

using only umbraco api calls

6/11/2009 4:13:54 AMAvatarbdayLocation: UT, USAposts: 1Karma: 0
I'm trying to find a starting point for this scenario:

A business wants a content management system that uploads AND serves the content via api calls only. The main reason behind this is so that authentication and permission logic is handled by the application calling the api function.

Content will be uploaded from a company intranet. For now, lets just say the content will probably be: images and documents (pdf, ms word or excel, plain text and/or html).

Content can then be accessed from a handful of the businesss website.

Is umbraco the correct solution? If so, what documents and/or forum posts should I read? If not, are there any recommendations on other existing products or should I start writing a customer web service and database to handle this kind of content management?

Thanks for your time!
~ Ben
7/3/2009 5:35:59 AMAvatarChris DunnLocation: Indianapolis, INposts: 72Karma: 121
Comment with ID: 8495

Ben,

Umbraco has a very extensive API for managing content and can be accessed via web services for integration with external websites.  Spend some time on the Developer section of the forums to get some ideas about what's possible.

Here are some other links that might help:

API Cheat Sheet: umbraco.org/documentation/books/api-cheatsheet

API Documentation (MSDN Style) : http://umbraco.org/apiDocs/index.html

-Chris

7/3/2009 7:39:21 AMAvatarslaceLocation: Coogee, Sydney, AustraliaCore.posts: 569Karma: 1526
Comment with ID: 8498

Unless you want to wait until v4.1 is released you're going to be stuck with only being able to do web service calls as Chris has suggested. The Umbraco API is very heavily tied to the HttpContext object which means that many of the classes are not able to be used outside of a web scope.

v4.1 will be bringing a new provider model which will allow the object model to be interacted with without a HttpContext. This is part of the core of LINQ to Umbraco, which also has documentation on the wiki. I haven't got the data provider model stuff done on there yet but it'll be on there soon enough.

Please login or Sign up To post replies