Score:0

I'm writing a node migration (D7 to D9) module but only the title gets migrated

in flag

How can I get the body migrated as well? When I compared this with other working migrations, there didn't seem to be any differences in the code/anything wrong with mine. I also looked for alternative process plugins but "sub_processes" seems to be working for everyone else just fine.

label: Generic - Node
migration_group: edweb_gen
migration_tags:
  - 'edweb_generic'

source:
  plugin: d7_node
  key: migrate
  node_type: generic

process:
  nid: tnid
  vid: vid
  title: title
  uid: node_uid
  status: status
  created: created
  body:
    plugin: sub_process
    source: body
    process:
      value: value
      summary: summary
      format:
        plugin: static_map
        bypass: true
        source: format
        # format - 'destination': source
        map:
          'plain_text': basic_html
          'basic_tags': basic_html
          'minimal_formatting': basic_html
          'filtered_html': basic_html
          'extended_tags': full_html
          'full_html': full_html
          'uoe_text_format': full_html

destination:
  plugin: 'entity:node'
  default_bundle: generic_content
miststudent2011 avatar
fr flag
Does this answer your question? [How migrate rich text fields from outside Drupal without converting html tags to entities](https://drupal.stackexchange.com/questions/309173/how-migrate-rich-text-fields-from-outside-drupal-without-converting-html-tags-to)
Karolina Lencina avatar
in flag
This does not really work for me either. I'm guessing that is because the person asking is migrating from a non-Drupal (csv) source and is using an additional module but thanks anyways!
Kevin avatar
in flag
Is source really "body"?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.