Block elements depending on layout selection


I have several block elements (e.g. “myHero”, “myDishes”, …) listed in “fieldsets” and they all are available within every defined layout (e.g. “1/1” and “1/2, 1/2”). The definition looks like this:

   - "1/1"
   - "1/2, 1/2"
   - "1/3, 1/3, 1/3"
   - myHeading
   - myText
   - myImage
   - myHero
   - myDishes

Is there a way that certain block elements, for example “myHero”, can only be selected within particular layouts, let’s say “1/1” (and not within “1/2, 1/2” and “1/3, 1/3, 1/3”)?

Thanks for hints (-:

No, this is currently not possible.

A workaround could be to nest layouts in blocks.

Thanks for the super fast response!

Is there a recipe for nesting layouts in blocks? I found this ticket (Unable to nest layout fields, error 500 in the panel) and this plugin (GitHub - youngcut/kirby-grid-block). Which is more useful?

Thanks (-:

I think the advantage of the plugin is that you get the preview for free.

The error described in the issue popped up yesterday, I haven’t been able to reproduce it yet.