This project is read-only.

Expose content items as xml

Topics: Customizing Orchard, Writing modules
Mar 22, 2013 at 4:47 PM
I would like to expose existing content items as xml. I was thinking of using projections for that.
The idea is to create a layout provider that uses a template for the xml structure and tokens for the actual content parts/fields.
This way, any content item can be represented as XML and in a way that is required by the user (element vs attribute etc.).

The key thing here is that the response for the projection route is just XML (HTTP Content-Type: text/xml), so no theme stuff.

Would this be possible (where to hook in) and would this be a good direction to go? (alternatives?)
Mar 23, 2013 at 7:59 AM
Did you consider using the WebAPI support instead?