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

Fix for importing and exporting matrix field settings #15

Closed
wants to merge 2 commits into from
Closed

Fix for importing and exporting matrix field settings #15

wants to merge 2 commits into from

Conversation

bvangennep
Copy link

There was a problem when exporting and importing fields of matrix blocks.
Settings of these fields were not included in the export, and also not imported.

I have made one function to extract field attributes (including settings) for both types of fields in the fields service. Settings are now also imported for matrix block fields.

In addition there was an issue with data getting lost when importing block types. I've modified the fields service so that imported block types are added to the settings of the matrix field. They are then stored together with the matrix field by the MatrixFieldType onAfterSave function.

Bart van Gennep added 2 commits September 30, 2015 14:38
…get lost.

Changed the fieldservice so that blocktypes are added to the matrix field settings, and then stored together with the matrix field.
@boboldehampsink boboldehampsink deleted the matrix-field-settings-fix branch October 15, 2015 19:57
@bvangennep bvangennep closed this Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant