2

I'm attempting to do some advanced layout orchestration using Matrix blocks. I'll need different blocks types – Image, Quote, Body – that can be combined, but they'll each need to share a few fields that allow their layout to be customized, such as Padding, Alignment, or Width. I'd rather not have to create the exact same field (e.g. Alignment could be a 4-option Dropdown) for each block type, but there doesn't seem to be a way to share fields between Matrix Blocks the same way you can share them between Sections.

Am I correct that there is no better way to accomplish this than just recreate the shared fields for each block type?

1 Answer 1

5

Correct - currently Matrix fields are not global, so you'll need to recreate them if you want to use them in other Matrix blocks.

5
  • Are there updates to this? Or is this still true about Matrix fields? Thank you.
    – userAW
    Nov 6, 2017 at 20:24
  • Yup... still true.
    – Brad Bell
    Nov 6, 2017 at 21:16
  • is there a feature request related to this? I'd like to vote on it :-)
    – userAW
    Nov 15, 2017 at 16:17
  • @userAW yup! github.com/craftcms/cms/issues/823
    – Brad Bell
    Nov 15, 2017 at 19:16
  • One day.... I hope : ) Jun 21, 2018 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.