Is it possible to create recursive components

I’m trying to model a menu which can have arbitrarily deep sub-menus. I’ve created 2 components, a MenuItem and a SubMenu (which has a list of MenuItems) I then created a content type called Menu with a repeatable dynamic zone which allows the user to enter either a MenuItem or a SubMenu.

This works, but it will only allow for a single layer of submenus. It would be really useful to be able to add a field to SubMenu which is itself a SubMenu. Is that possible?


2 Likes

Hello i need to implement the same functionality, did you find any solution?