Pennebaker / craft-architect

A plugin for importing and exporting content models from Craft 3/4 using JSON.
MIT License
72 stars 6 forks source link

Unable to import super-table field with matrix-field inside #29

Closed nettum closed 5 years ago

nettum commented 6 years ago

Hey! I'm unable to import a super-table field with a matrix inside. This is part the generated json on export:

 {
    "group": "myGroup",
    "name": "myContentblocks",
    "handle": "articleContent",
    "instructions": "",
    "type": "verbb\\supertable\\fields\\SuperTableField",
    "minRows": "",
    "maxRows": "",
    "localizeBlocks": false,
    "staticField": "",
    "fieldLayout": "row",
    "selectionLabel": "Add content",
    "blockTypes": [
      {
        "name": "myRow with one or to blocks",
        "handle": "contentBlock",
        "instructions": "",
        "type": "craft\\fields\\Matrix",
        "typesettings": {
          "minBlocks": "1",
          "maxBlocks": "2",
          "localizeBlocks": false,
          "blockTypes": [
            {
              ...
            }
          ]
        }
      },
      ....
    ]
 }

This is the error I get when trying to import the generated json:

type: exception
Invalid block type ID: 1

All other fields except the super-table (and it's children) seems to import fine.

Screenshot of error: image

Related to #10? I'm running architect 2.2.9 and craft 3.0.10.3