feed-me
feed-me copied to clipboard
Table inside SuperTable inside Matrix
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:
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:
And this is how it should look:
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
Got the same issue. Any update?