Contents tagged with migrations

  • Orchard CMS: How To Create Content In Your Module Migrations.cs

    While I'm on an Orchard streak, here's something else that I felt sounded easy on paper, but wasn't well documented. In the form of a question - "How can I create content (pages, widgets, whatever) when my module is activated?" To create all content (which again makes judicious use of dynamic objects, since Orchard has no idea what sort of content is being created at compile time / the … more

  • Orchard CMS: Adding a field to a custom content type in your module / migrations.cs

    While it sounds simple, I didn't quite find all the documentation I needed in once place, and there were a few gotchas, so I thought I'd make a post (if only for my own future reference). A few notes on fields, content types and content parts before we continue: When we add a field to a content type via the Admin Interface in Orchard, it looks nice and independent, but in the background all … more

  • 1