I would propose that we refactor the way we install example content to use Migrate module and CSV files the same way Demo Framework does this. That will allow us to share code with DF but also be more flexible with the way content is imported.

Comments

saltednut’s picture

Commons can use the 7.x branch of Import module for migration base classes that are easily extendable, just as DF and Lightning do.

Or just borrow from the code examples it provides.

There are also Migration classes in DF that show how to import OG Memberships, etc. So it shouldn't be a lot of work to figure it out for Commons needs.
-- http://drupalcode.org/project/import.git/tree/refs/heads/7.x-1.x

ezra-g’s picture

Agreed - Thanks for the pointers. We already have an issue for this but you guys provided more useful info in this one, so I marked #2070189: Save default content with batch API as a duplicate.

saltednut’s picture

Here are the OG Group Membership migrations I mentioned in #1:
-- http://drupalcode.org/project/df.git/blob/refs/heads/7.x-1.x:/modules/df...

lsolesen’s picture

Status: Active » Closed (duplicate)