Closed (won't fix)
Project:
Migrate Extras
Version:
6.x-2.x-dev
Component:
Filefield
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 18:54 UTC
Updated:
23 Jun 2011 at 02:09 UTC
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
Comment #1
hadsie commentedI 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?
Comment #2
hadsie commentedJust 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
Comment #3
mikeryanMigrate and Migrate Extras V1 are no longer supported. File/image field support are built in to Migrate V2.