0

i use d2d migrate module to migrate content between D6 and D7 websites.Actually my migration class do partially the job for all content of a type (some issue on mapping custom fields), but i would to add an argument about specifying to migrate content publish after a specific date, this to add content to current website, or ask to migrate to ignore content created yet on system..how can i do this ?

thanks

0

Have you had a look at the "Highwater mark" part of the migration documentation? this may be what you are looking for. http://drupal.org/node/1223936

  • thanks it looks to be the way.but actually my basic migration doesn't work because mapping missed some fields..so i add them by : $this->addFieldMapping('taxonomy_vocabulary_11', '11') ->sourceMigration('NomMachineMigrationTerm'); but there are a lot of additionnal fields like taxonomy_vocabulary_11:source_type, taxonomy_vocabulary_11:create_term, taxonomy_vocabulary_11:ignore_case, do i add them too or base field is enought ? – webmaster pf Apr 8 '13 at 13:42
  • I don't think that is a problem, as you are setting your high watermark on the field that is acting as the overall controlling field for that whole migration. – Andre Apr 8 '13 at 13:55
  • i make progress,i can specify a date to start import content, now i need to import files and images from fielfield and imagefield...$this->addFieldMapping('field_minipresse', 'field_minipresse'); this is not enought,field is empty in imported cointent – webmaster pf Apr 10 '13 at 6:58
0

fix for setting a publication date of node :

class NodesContentActuMigration extends DrupalNode6Migration {

protected function query() {
    $query = parent::query();
    $query->condition('created', strtotime('20-02-2013'), '>');
    return $query;
 }    
public function __construct(array $arguments) {
...
}}

i would to do the same but with filtering on modificated date of the node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.