I would like to import 2 related nodes (Organic Group and OG group content) from 2 CSV files using Migrate module but I cannot find a proper CSV migrate class example or module. I use Drupal 7.
OG Group
|
|--OG group content
file formats:
(a) OG Group file
=============================================
gid | group_title | group_body | group_admin
(b) OG group content
==================================
nid | gid | node_title | node_body
relationship:
{a.gid} 1..(one-to-many)..* {b.gid}
{a.group_admin} *..(many-to-one)..1 {users.uid} // group admin is one of existing users uid that should have the OG group administration membership rights
Where can I find a sample CSV migration class for Migrate module ?
Migrate OG is for D6 only Migrate Extras contains classes for OG for D7 but I could not find an example for this scenario.