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

Add full SuperTable support #10

Closed Emkaytoo closed 6 years ago

Emkaytoo commented 6 years ago

The Architect exported a majority of a SuperTable field, but didn't export the fields within the table itself.

Architect output is below.

{
  "fieldGroups": [
    "Assets"
  ],
  "fields": [
    {
      "group": "Assets",
      "name": "Location Contacts",
      "handle": "locationContacts",
      "instructions": "Add rows below to generate the contact table. Add a label for the section, and then select the appropriate contacts from the list.",
      "type": "verbb\\supertable\\fields\\SuperTableField",
      "minRows": "1",
      "maxRows": "",
      "localizeBlocks": false,
      "staticField": "",
      "fieldLayout": "row",
      "selectionLabel": "Add contact"
    }
  ]
}
Emkaytoo commented 6 years ago

Did you get SuperTable working within a Matrix? I'm not able to import a SuperTable within a matrix using the json exported by the Architect after configuring it within the control panel.

spAnser commented 6 years ago

This is actually an issue with how the Matrix fields are parsed.

spAnser commented 6 years ago

Fixed in 2.2.3