Closed (fixed)
Project:
Migrate Extras
Version:
7.x-2.x-dev
Component:
Location
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Apr 2011 at 05:08 UTC
Updated:
27 Apr 2011 at 22:01 UTC
Hey All,
New to Migrate and found Migrate Extra's provides support in import location data. The only examples I've found are like, http://drupal.org/node/942208, where they manually build the array then call a location save in the hook_prepare and then saves the lid to the CCK field.
In my instance I'm not using location as a CCK field on the Node type and just curious if someone on here could point me in the right direction on how to do this properly using the build integration.
Cheers,
Gene Bernier
Comments
Comment #1
FrequenceBanane commentedsubscribe
Comment #2
gbernier commentedHey All,
I figured it out but ended up take a page from the example provided when using the CCK Location field.
I decided to look at the Devel output of node type I was trying to import to see what fields the location module added to the node. I found there was a locations(array) and location(single instance). So I created the location as the other exampled showed then saved the location object to both locations and location and it worked.
Here is my prepare method I used:
As a side note though, if anyone has suggestions on how to get better error messages out as to why records don't import I'd love to here because the number of messages and the number not imported do not match.