Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperTable subfields require "required" attribute to process properly #50

Open
Emkaytoo opened this issue May 16, 2017 · 1 comment
Open
Assignees

Comments

@Emkaytoo
Copy link

I used an exported SuperTable and was unable to reimport it.

Exported .json below:

{
      "group": "Content Builder Homepage",
      "name": "Card Bucket Containers",
      "handle": "cardBucketContainers",
      "instructions": "",
      "required": false,
      "type": "SuperTable",
      "typesettings": {
        "fieldLayout": "table",
        "staticField": null,
        "selectionLabel": "Add a row",
        "maxRows": 4,
        "blockTypes": {
          "new": {
            "fields": {
              "new1": {
                "name": "Card Title",
                "handle": "cardTitle",
                "instructions": null,
                "required": 0,
                "type": "RichText",
                "width": "",
                "typesettings": {
                  "configFile": "Headline.json",
                  "availableAssetSources": "*",
                  "availableTransforms": "*",
                  "cleanupHtml": 1,
                  "purifyHtml": 1,
                  "columnType": "text"
                }
              },
              "new2": {
                "name": "Card Description",
                "handle": "cardDescription",
                "instructions": null,
                "required": 0,
                "type": "RichText",
                "width": "",
                "typesettings": {
                  "configFile": "Standard.json",
                  "availableAssetSources": "*",
                  "availableTransforms": "*",
                  "cleanupHtml": 1,
                  "purifyHtml": 1,
                  "columnType": "text"
                }
              }
            }
          }
        }
      }
    }
@Emkaytoo Emkaytoo changed the title Appears architect has lost support for SuperTable SuperTable subfields require "required" attribute to process properly May 17, 2017
@Emkaytoo
Copy link
Author

Issue found: the subfields in the SuperTable need to have the required attribute or they will result in an undefined index error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants