To be specific, I'm going to use Orchard CMS as a back-end for content editors for an existing website.
My website is too complicated to wrap it into an Orchard custom Module, so I decided to use stand-alone instance of Orchard as backend, and query and show content items manually in the code of my side.
I want to find the way how I could get content items from Orchard using it's API.
Here is some pseudocode I want to achieve:
// somewhere in my site, not in the Orchard application
IOrchardServices orchardFacade = CreateOrchardSystemSomeWay();
IContentManager contentManager = orchardFacade.ContentManager;
var myNeededItems = contentManager.Query("MyContenItemType").ToList();
I have troubles with the implementation of CreateOrchardtSystemSomeWay
.
Did anyone try to implement such a way of accessing Orchard CMS data?
Another alternative is to use the database directly, but it would not be very nice approach.