Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Migrate Field Mappings

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:00
  • 0:01
    with Joe Shindelar
  • 0:08
    JOE SHINDELAR: In this lesson, I'd like to take an in depth look
  • 0:11
    at Field Mappings in our player migration.
  • 0:14
    Field mappings are how we take pieces of information in our source
  • 0:18
    data and map them to the appropriate fields in our Drupal content type.
  • 0:23
    In our case, we're going to do things like take the player's name
  • 0:27
    and map it to the node title of our newly created nodes.
  • 0:32
    We'll take a look at the addFieldMapping() method
  • 0:35
    of our migration and how we can use that to create these links between

Migrate Field Mappings


In this lesson we'll continue to add field mappings to the basic migration class created in the previous lesson. We'll see how to add more information about the available source fields. We'll map more of the player source data fields to their equivalent destination fields and learn about some of the many ways that fields can be mapped. Finally we'll also cover mapping sub-fields which allows us to import data for things like the text format of a node's body field or the alt column in an image field. Information that's contained within a meta field.

Log in or sign up to download companion files.
Additional resources: