Hi,

I'm writing a customized migration from a D5 site that uses imagefield into a D6 site that also uses imagefield. Running drush mfd I see the field: "Node: Story Photo(s) (filefield) field_story_image". Some nodes I have on the D5 site have more than one image associated with them. I'm just wondering what I need to do to get all the data imported into the imagefield on D6.

Right now I'm using:
$this->addFieldMapping('field_story_image', 'filepath');

But that doesn't appear to be working. And also, I'm not sure how that would work for multiple values. Any help on the syntax I need to use (or a pointer to some existing documentation) would be awesome.

Thanks!
Scott

Comments

hadsie’s picture

I guess another related question is how do I specify a file function? I notice in the code you have: " // One can override a file_function via CLI or drushrc.php". But what's the actual syntax I need to use to do that? And can I set migration options in my migrate scripts?

hadsie’s picture

Just noticed I'm getting this error:

Undefined index: arguments File <snip>/migrate_extras/filefield.migrate.inc, line 25(file:<snip>/sites/all/modules/migration/migrate_extras/filefield.migrate.inc, line 25)

So I guess what I'm doing must be way off right now :)

Thanks again for any help.

- Scott

mikeryan’s picture

Status: Active » Closed (won't fix)

Migrate and Migrate Extras V1 are no longer supported. File/image field support are built in to Migrate V2.