Closed (works as designed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2015 at 12:16 UTC
Updated:
26 Apr 2016 at 09:20 UTC
Jump to comment: Most recent
Comments
Comment #1
mikeryanI think you can extend MigrateImageFieldHandler, something like:
Is that helpful?
Comment #2
mikeryanOh, meant to note - both MigrateImageFieldHandler and your new field handler would be in play for image fields - you would want to go to /admin/content/migrate/configure and under Handlers disable MigrateImageFieldHandler in favor of your extended handler.
Comment #3
istryker commentedI will try this and get back to this issue.
Comment #4
mikeryanComment #5
ngocketit commentedDoesn't seem to work for me. Following is the code:
The image caption gets NULL for both value & format.
Comment #6
ngocketit commentedThis is specific to image_field_caption module and has nothing to do with exposing subfield in the field handler class. Please check: https://www.drupal.org/node/2101751#comment-11123751 for a solution. Btw, the code provided by @mikeryan needs to be updated a bit, like so:
Otherwise, the 'alt' and 'title' won't be migrated.