Nested groups. (Again)

Hey guys,
I know that there is no way of using nested groups. Officially.

But I just realized, that it is actually works well, if add a group inside another groud on model.json:

[
  {
    "grid": {
      "type": "Group",
      "config": {
        "label": "Grid",
        "repeat": true,
        "fields": {
         ......
          "boxes": {
            "type": "Group",
            "config": {
              "label": "Boxes",
              "repeat": true,
              "fields": {...}
            },
          .........
          }
        }
      }
    }
  }
]

I just want you to confirm that this is a hidden feature or a bug and if I can use it in production.

Thanks

3 Likes

Thanks @Vladyslav.L for sharing this. It would be awesome to have this feature, I have to do messy content models because I can’t create nested groups, and it happens a lot.

2 Likes

Hi Vladyslav,

This was an experiment. We decided to not continue with it.

I recommend to not use this in production.

Instead of generic nested groups, we are building specialized fields. The idea is to solve specific content problems with the right tool, rather than a generic nesting system. For example, fields like repeatable link already follow this approach.

Could you tell us more about your use case? What are you trying to model? We want to help you find the best solution with what we have, or take your case into account for future specialized fields.