Is there a way to place matrix fields inside of matrix fields or also to setup a matrix field with existing fields?
We are currently trying not to have duplicate content in terms of fields, but that doesnt seem possible?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityIs there a way to place matrix fields inside of matrix fields or also to setup a matrix field with existing fields?
We are currently trying not to have duplicate content in terms of fields, but that doesnt seem possible?
Matrix within Matrix isn't possible... yet. Brandon has stated a few times that it's part of the long-term plan, and it's really more of the UI which is a stumbling block, rather than any major technical challenge.
... Matrix within Matrix is still something we intend to get working at some point.
… Matrix within Matrix will be coming eventually. The UI is tough, but the code is all in place.
In the meantime, you may want to try using the LJ Dynamic Fields plugin. It may not be exactly what you're dreaming of, but it can certainly help keep things a little DRY-er.
As of 2016, I have come across two options that attempt to handle the matrix-within-a-matrix scenario (to varying extents):
Neo plugin
https://github.com/benjamminf/craft-neo
Provides the ability to place existing Craft fields inside a matrix, group fields into tabs, and also nest blocks as "children" of other blocks.
Super Table plugin
https://github.com/engram-design/SuperTable
Allows you to create repeatable fields that include almost any field type, including matrix.
This wiki page from the Neo repository also lists a few videos and other resources which delve into this topic:
https://github.com/benjamminf/craft-neo/wiki/6.-Resources
(I recently made the proud discovery that both these great plugins were made in my home city, Melbourne, Australia. Woo!)