- π³πΏNew Zealand davidwhthomas
I specified the text_format during migration of the body field with this migration template yaml:
body: - plugin: sub_process source: body process: value: value format: plugin: default_value default_value: newsletter_html
- πΊπ¦Ukraine Kostiantyn
@davidwhthomas Thank you for the comment, this is exactly what I was looking for. I tried to migrate this way, and it worked for me for a while, but I found an issue where migrations fail when all fields are empty. For some reason, skip_on_empty doesn't work as I expect it to.
body/value: - plugin: skip_on_empty method: row source: body - plugin: extract source: body index: - 0 - value body/summary: - plugin: skip_on_empty method: row source: body - plugin: extract source: body index: - 0 - summary body/format: - plugin: default_value default_value: full_html