Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Passing array of ID(s) in fieldId param in Matrix Block queries does not return custom field content #5388
In Craft 2, I'm 90% sure you could pass multiple fieldId's in Matrix Block queries to return their custom field content.
In Craft 3, while you can return custom field content with a sole field ID, placing that field ID in an array, or passing multiple within an array, will not return the custom field content.
Is this functionality being removed intentional?
Steps to reproduce
This was also the case in Craft 2, and the reason for it is that each Matrix gets its own content table, and element queries aren’t currently able to pull in content from multiple content tables at the same time.
I will leave this open though, as this is something we hope to make possible in Craft 4.