This project is read-only.

Create ContentType at runtime

Topics: Customizing Orchard, General
Jun 3, 2014 at 6:48 AM
I'm trying to figure out is there any way to create ContentTypes on the fly, without any touch of the database.
It looks meaningless, but imagine, that you don't have any idea about fields of the ContentPart you are going to create. All that you have is just some XML file with description of that type. And you have to parse that XML to get types of the fields, then you have to create the Part, render it as editor, then take the result of the users input and save that result.
And I'm wondering now, can Orchard somehow help me with that?