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.

CommentFileSizeAuthor
node_import_emfield.patch3.29 KBmvc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvc’s picture

I 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

Robrecht Jacques’s picture

Status: Needs review » Fixed

Committed. Will be included in -rc5. Thanks! Didn't test.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ehikr’s picture

FYI, the patch mentioned in #1 http://drupal.org/node/523860 is in the latest version of Embedded Media (6.X 2.1)