Fieldsets in blocks

Hi DatoCMS,

After playing since years with DatoCMS UI and blocks, I wonder why there is no fieldset feature in blocks. I’ve found this feature request: Fieldsets in blocks?

but nothing else. Is there a trick to group fields into blocks ?

I’m always using block as you do in your Marketing Demo template and it would be awesome to be able to group fields and reduce potential mess it could be into blocks.

if you have any advice to achieve it, that would be great.

Thanks a lot.

Hi @ghislain.flandin,

I think the feature request makes sense and I hope to see it added, but sometimes they can take a while :frowning: It just depends on their popularity (votes), mostly.

As a workaround though, would nested blocks perhaps work for your use case? You can put blocks inside blocks inside blocks, either single/multiple or some combination of them. If you can share your desired schema or use case with me, maybe I can make you a quick example?

What do you think? Would that be an acceptable workaround for now?

Hi @roger ,

Thanks for your message.
Not sure it could work as a workaround.

How can I share you my schema ?

Best regards.

You can either just post your record/schema URL here (it’s still password-protected, but others can see the URL), or DM me here on the forum if you prefer, or email support@datocms.com.

Sent by email !
I’ll keep you updated of our findings ! :slight_smile:

So after discussing with @roger , the workaround I’ve found is to use Single Modular content with Framed option … not frameless … and set it collapsible by default.

But, this is only a workaround, because it requires to split your block model into sub-blocks.

Let’s imagine that I have 2 blocks with different “rendering” fields (and different properties values to be selected) that I want to be collapsed by default, I need to create 2 other block models to be included in the parent blocks : rendering_block_1 and rendering_block_2.

It complexifies a lot block model structures.

So, I would love this fieldsets / tabs feature to be implemented. :pray:

Thanks again @roger for your help.

1 Like