Version 6.0
Last updated
Was this helpful?
Last updated
Was this helpful?
Version 6 introduces several new features. One of them is the ability to import into Bloqs and Fluid field groups. Some fieldtypes such as Simple Grid, Simple Table, and the native Grid field all allow for repeated rows of content to be imported. Importing into Grid, Simple Grid, or Simple Table as a standalone field works the same way as it did in previous versions of DataGrab. You simply choose a column and select from the dropdown list of properties in the import file and the data will be imported into that column.
To get this same behavior to work when one of these fields is inside of Bloqs, Grid, or Fluid you will need to set one additional value from the dropdown. The "Parent Node" option will only present itself in this scenario. DataGrab assumes that data imported into these fields will be grouped together and at the same level in your import file(1). The value of the Parent Node will need to be the top most parent of that group. It's going to be the property that ends with __parent__ - [includes 1 children]
In this example that would be fluid_field/{n}/fluid_group_3/{n}/grid/parent - [includes 1 children]
. This tells DataGrab to grab all the values for that field in one pass, as opposed to performing excessive loops. It's also important because with Bloqs, Grid, and Fluid, it's possible to have more than 1 instance of of basically the same field nested inside of it. This helps keep the contents of the field assigned to the appropriate instance of the nested field when there are more than 1.
This is an example of a Simple Grid field configuration inside of a Bloqs field.
This is an example of a Simple Table field inside of a Bloqs field.
(1) If you're trying to pluck data from varying locations and depths of your XML or JSON file into a Grid, Simple Grid, or Simple Table field, it will not work. The data should be grouped how you want it presented in the field. For example: