Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
saltednutCommons 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
Comment #2
ezra-g CreditAttribution: ezra-g commentedAgreed - 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.
Comment #3
saltednutHere 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...
Comment #4
lsolesen CreditAttribution: lsolesen commentedPlease review this #2285619: Use migrate for demo content