Replies: 3 comments
-
Its correct that you can't select the block type when mapping, because the fields change depend on what block type you want - therefore, a potentially different set of mapping. It'd be like trying to set the entry type or section of an entry when trying to import it - Feed Me wouldn't know what to do! You should be able to import your content in the correct order via:
Where the above shows importing an entry, with a Matrix field, with 3 block types, Heading, Image and Copy, and these should import in the order specified, and for the type setup per mapping. Note the nodes names are just for illustrative purposes, but if you're going from C2 > C3, it might be worth keeping them the same as their counterparts. |
Beta Was this translation helpful? Give feedback.
-
That would work, except two of the blocks we've got share the same fields (same field names) but are displayed differently. I guess the only workaround is to change the name of at least one of the fields. |
Beta Was this translation helpful? Give feedback.
-
Yep, good point. Marking as a feature request for now. |
Beta Was this translation helpful? Give feedback.
-
Description
We're rebuilding a craft site and need to import matrix blocks from the old site to the new, while maintaining their order. As far as I can see there's no way of specifying the block type to use when importing. Our data is structured like this (via element api):
Each
layer
item has all the possible fields for each block type. Fields that don't appear on that block type arenull
.Steps to reproduce
Additional info
Beta Was this translation helpful? Give feedback.
All reactions