I am using the Migrate (v7.x-2.2) module to migrate records from an XML source into Drupal 7.9.
I've also installed the popular link field module (v7.x-dev).
So far, in my migration class, all built-in fields work well during the migration, but I have not figured out how to migrate link fields from my XML source with their title.
I have two XML source fields (xpaths):
/record/organization/name <-- I want to migrate this into the link title
/record/organization/url <-- I want to migrate this into the link url
I am able to get the URL to import using this line in my Migration file (had to use link v7.x-dev module, not 7.x-1.0):
$this->addFieldMapping('field_organization', 'organization_url')->xpath('/record/organization/url');
...but I have no idea how to inject the /record/organization/name
into the title argument:
$this->addFieldMapping('field_organization', 'organization_url')->xpath('/record/organization/url')->arguments(array('title' => [WHAT GOES HERE?]);