Closed (outdated)
Project:
WordPress Migrate
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2012 at 15:12 UTC
Updated:
24 Sep 2023 at 08:25 UTC
Jump to comment: Most recent
Comments
Comment #1
mikeryanYou would need to derive your own migration class from the defaults - I'm afraid I haven't written documentation for this yet, the closest thing is http://drupal.org/node/1616974#comment-6083888.
The field values are set in the row before it's passed to prepareRow(). I.e., if you have a meta_key of 'my_tag', and value of 'my_meta_value', then you'll see in prepareRow that $row->my_tag == 'my_meta_value'. You can use the key in field_mappings:
Is this helpful? If you're not a Drupal developer, I know the answer is going to be "no"...
Comment #2
mikeryanComment #3
cfox612 commentedI'm importing a fairly large WP blog into Drupal 7, and the WP blog uses custom field templates. It would be great if in the admin portion you could specify a custom meta_key to bring in that extra info without modifying the module (since as you pointed out many of us are not (yet) developers).
I've been attempting to modify the module to bring in a simple text field with zero success thus far.
Comment #4
mikeryanComment #5
mikeryanComment #6
hongpong commentedClosing this as too far back to work on... Thanks all.