Skip to content

Feedme always adds empty Matrix block #1607

@JayBox325

Description

@JayBox325

Description

I have generated a JSON file and formatted some test Matrix blocks like this:

"pageComponents": {
    "MatrixBlock": [
        { 
            "body": "<p>Test paragraph 123456.</p><p>[IMAGE BLOCK - test.jpg]</p>" 
        },
        {
            "body": "<p>This is a test paragraph, too.</p>" 
        }
    ]
}, 

Yet, when I complete the import, it's always creating rogue empty matrix blocks, even though there's nothing in the JSON to tell it to do that. I think our next port of call is to write a JS import function using GraphQL Mutations but we'd like to keep using FeedMe if possible. See here there's always an empty block:

Image

Steps to reproduce

  1. Create json to import with matrix blocks
  2. Import it
  3. See empty block

Additional info

  • Craft version: 3.6.11
  • PHP version:
  • Database driver & version:
  • Plugins & versions:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions