This project is read-only.

Programmatically creating pages

Topics: Customizing Orchard
Oct 29, 2011 at 7: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.

Oct 29, 2011 at 8: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 8:57 PM
Edited Oct 29, 2011 at 9: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.

Oct 29, 2011 at 8:58 PM

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