Creating global blocks?
Is it possible to create global blocks using the Blocks, that can then be attached to different Resources?
Example:
And then I can simply add an address block to different resources? If so where would the block be defined, and how would it be attached? I can't find anything about this in docs.
Solution:Jump to solution
Yes, there are several ways to do this. It’s standard OOP principles and you can store them anywhere you want.
3 Replies
Solution
Yes, there are several ways to do this. It’s standard OOP principles and you can store them anywhere you want.
For example: https://gist.github.com/awcodes/0ca10c437de1bfdf03d13b19326d6aaf
Then just use it in your Builder component
@awcodes Ah, that makes a lot of sense, huge thanks!