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.
The following patch adds support for emimage, emvideo, and emaudio CCK fields added to nodes with the Embedded Media Field module. A similar approach would likely work for other media types supported by that module but these are all I've personally tested.
To import these fields, you only need to supply the URL of the embedded media (for example, the URL of an image hosted on Picasa or Flickr, or a video hosted on YouTube). All other fields are determined by the emfield module, just as when creating or editing a node via the standard Drupal web interface.
Comment | File | Size | Author |
---|---|---|---|
node_import_emfield.patch | 3.29 KB | mvc |
Comments
Comment #1
mvcI forgot to note that exporting these fields in the first place requires this patch to the embedded media field module: #523860: Plain Video and Image URL in Views
Comment #2
Robrecht Jacques CreditAttribution: Robrecht Jacques commentedCommitted. Will be included in -rc5. Thanks! Didn't test.
Comment #4
ehikr CreditAttribution: ehikr commentedFYI, the patch mentioned in #1 http://drupal.org/node/523860 is in the latest version of Embedded Media (6.X 2.1)