Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Adding migrate module support to this module can be very useful in our daily work with migration projects that want to use video embed fields.
Comment | File | Size | Author |
---|---|---|---|
#1 | migrate-support-2007194-1.patch | 1.84 KB | rvilar |
Comments
Comment #1
rvilarI wrote the code to enable support and is working in some of our projects.
Comment #2
daveparrish CreditAttribution: daveparrish commentedPatch applied cleanly and works fine.
I also went ahead and created a module for anyone needing this functionality but not wanting to apply the patch.
https://drupal.org/sandbox/daveparrish/2110595
Comment #3
plopescPatch committed! 8f6de9e
Thank you very much rvilar!
Comment #5
wonder95 CreditAttribution: wonder95 commentedI can second @tannerjfco's experience in #2318077: Issues with Migrate Field Handler, in that mapping to the :video_url subfield imports nothing, but if I import to my video field without the subfield:
as compared to
where the my_video_url source field is a custom value generated in prepareRow(), is it works just fine.
In running through the prepare() function for the handler, my mapped value comes in in $values['arguments'], and once that gets unset, there's nothing left in $values, so FALSE is returned. Any chance someone could give an example of how this is supposed to be used, if not just as a straight mapping like I showed above?
Thanks.
Comment #6
wonder95 CreditAttribution: wonder95 commentedComment #7
james.williams CreditAttribution: james.williams at ComputerMinds commentedComment #8
james.williams CreditAttribution: james.williams at ComputerMinds commentedIn general, the primary field value should be set without a subfield. This is the case for most fields, so videos ought to be the same. For example, for an ordinary text field you would also use
not
Subfields for video embed fields could be improved - see #2472687: Video embed field Migration subfields.