feed-me icon indicating copy to clipboard operation
feed-me copied to clipboard

Table inside SuperTable inside Matrix

Open Mathias-Syversen opened this issue 4 years ago • 1 comments

I'm trying to import an event program for some upcoming events. Doing import skips the information for the table field.

JSON: { "entries": [{ "title": "Our fictional math event", "program": { "13-05-2020": [{ "title": "Wednesday", "program": { "title": "Geometry 1A", "activities": [{ "title": "Triangles", "description": "With Dr. Dre" }, { "title": "Squares", "description": "With Dr. Dre" }] } }], "14-05-2020": [{ "title": "Thursday", "program": { "title": "Algebra", "activities": [{ "title": "Letters in math", "description": "Eminem" }, { "title": "Recovery", "description": "Eminem" }] } }] } }] }

So here "program" is the matrix block. It has two fields, a title, and a SuperTable field "program". The SuperTable field has two fields, a title and a table of "activities".

When running the import I get the SuperTable "program" title imported, but the table field is left blank.

This is how it is mapped in FeedMe:

Screenshot 2020-06-10 at 17 28 49

From the logs, what FeedMe gets from the feed and tries to log: { "title":"Our fictinal math event", "eventProgram":{ "new1":{ "type":"eventDays", "enabled":true, "collapsed":false, "fields":{ "eventDay":"Thursday", "program":{ "new1":{ "type":"10", "order":0, "enabled":true, "fields":{ "description":"Algebra" } } } } } } }

Right beneath "description":"Algebra" there should have been data for the table field.

This is how it looks after importing: Screenshot 2020-06-10 at 17 27 47

And this is how it should look: Screenshot 2020-06-10 at 17 27 08

I remember issue #470 a while back, at that time the fix posted worked for another project i had. By then the fix seems to have been implemented by FeedMe, and trying to overwrite it does not work.

Is there something wrong with my formatting? Or does FeedMe simply dont go these many steps down into the json?

  • Plugin version: 4.2.3
  • Craft version: 3.4.22.1

Mathias-Syversen avatar Jun 10 '20 16:06 Mathias-Syversen

Got the same issue. Any update?

umkasanki avatar Aug 30 '20 07:08 umkasanki