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

Blocks inside Matrix fields, inside of SuperTable fields are not being imported #161

Open
mtnorthrop opened this issue Oct 3, 2018 · 3 comments
Labels
bug craft3 Schematic 4+ for craft3 help wanted

Comments

@mtnorthrop
Copy link

mtnorthrop commented Oct 3, 2018

I'm using version 4.0.17 on Craft 3.

I have a SuperTableField that contains a Matrix field, which in turn contains a number of different blocks.

When I run schematic/export, all these fields, down to the Matrix blocks, are written into the yaml file. However, when I run schematic/import in the target environment, only the SuperTable field and Matrix field are imported; all of the Matrix field's child blocks are missing.

Here is an abridged version of the schema.yml file:

fields:
  pageSections:
    class: verbb\supertable\fields\SuperTableField
    blockTypes:
      pageSections-0:
        class: verbb\supertable\models\SuperTableBlockTypeModel
        fields:
          sectionContent:
            class: craft\fields\Matrix
              blockTypes:
                redBannerHeading:
                   class: craft\models\MatrixBlockType
                   ...

Everything down to the sectionContent field seems to be imported correctly, but none of that field's blockTypes are.

Is this a bug, or am I going about this incorrectly? Thanks!

@bvangennep bvangennep added bug help wanted craft3 Schematic 4+ for craft3 labels Oct 8, 2018
@roelvanhintum
Copy link

I'm having the same issue in a multi site setup (maybe this makes a difference?). Seems to be an issue with SuperTable. verbb/super-table#179

@bvangennep
Copy link
Contributor

@roelvanhintum Has this been fixed by the changes to supertable?

@roelvanhintum
Copy link

No, i had such a hard time to debug while having a deadline coming up i had to switch to migration manager. Honestly, having migration files works really nice. Also, i'm not sure what we're going using once Craft 3.1 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug craft3 Schematic 4+ for craft3 help wanted
Projects
None yet
Development

No branches or pull requests

3 participants