It would be great to see an example in the migrate_d2d_example module of a migration where you migrate a content type that has an image field. The example should demonstrate the correct way to import all content of type 'x' and to include any images attached to the x nodes, preferably using the DrupalFile6Migration class.

I think I can see how it should be done, although what I can't see is a good way of restricting the DrupalFile6Migration to only include relevant images, rather than migrating everything, without using some kind of join on the query. I was hoping to be able to name the file migration as a source migration and then only migrate files required by that source migration link, that way you would have a definitive list of fid's to bring across.

This (http://drupal.org/node/1815578) issue is really interesting and relevant here.

Comments

dasginganinja’s picture

Issue summary: View changes

I completely agree! I have a site that I am migrating from that has A TON of images/files that are managed. I only want the relevant ones! +1 from me!

dasginganinja’s picture

Version: 7.x-2.0-rc1 » 7.x-2.x-dev