Programmatically creating pages

Topics: Customizing Orchard
Oct 29, 2011 at 6:38 PM

I need to migrate a large (100k+) set of pages to Orchard. Can anyone offer any insight on how to programmatically create pages? I'm assuming this is just a matter of creating records in the SQL database, but I'm not sure which tables, etc are affected.

The pages are mostly static HTML with some images, etc.

Coordinator
Oct 29, 2011 at 7:37 PM

no, don't go directly to the database. You can do it using the content manager. You can also use the import feature.

Oct 29, 2011 at 7:57 PM
Edited Oct 29, 2011 at 8:03 PM

Could you elaborate on how to use the content manager to do this, or where I can find more information on the import feature? Google is not being friendly today.

Coordinator
Oct 29, 2011 at 7:58 PM

You can look at any controller that creates items. For example, the blog post controller.