Replies: 2 comments
-
Hey @chladog, We should be able to support reusing blocks. There are some particulars we need to decide on around how to set up the discriminator to handle this.
There are probably other considerations, though I think either option would allow you to do what you're attempting. Can you share a sample repo or comment with your configuration to reproduce the issue to solve? |
Beta Was this translation helpful? Give feedback.
-
When recreating the simplified showcase I found out it was actually working alright all the way until I added Here is the showcase, pain point at :55 and :91 in file /collections/Pages.ts The motivation behind setting localized on blocks and not to upper-level rows is that we want to have same-styled rows in all languages, though their content (blocks) could be slighty different per locale. Though now you see the exact point of failure so it might be easy fix for you ;-) Here is the showcase repo: https://github.com/chladog/nested-blocks-case Regarding you proposals 1) is obviously more efficient and I believe the human-caused slug duplication is not real problem here.
|
Beta Was this translation helpful? Give feedback.
-
When I try to define a block fields inside block field I'm getting following error:
Even though that Socials block actually does not exists anywhere else it's just defined inside one of the block a level higher.
I hope that nested blocks are supported as my desired structure is quite dynamic and would be:
repeater array of "rows" => blocks "row content" => block with blocks (e.g. Homepage Jumbo) => "Socials".
Any way to go around this? If nested blocks are not supported, are you planning to feature them?
Beta Was this translation helpful? Give feedback.
All reactions