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

Table inside SuperTable inside Matrix #706

Open
Mathias-Syversen opened this issue Jun 10, 2020 · 1 comment
Open

Table inside SuperTable inside Matrix #706

Mathias-Syversen opened this issue Jun 10, 2020 · 1 comment
Labels

Comments

@Mathias-Syversen
Copy link

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
@umkasanki
Copy link

Got the same issue. Any update?

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

No branches or pull requests

3 participants