Infinite web block loop alternative?

Hi everyone.

In my app, we use a hierarchy using web blocks, to display lists within lists.

We have 8 levels on this hierarchy, and at the moment we use 8 different web blocks within eachother, which display a list when the parent list item is opened.

We would like to move to a system where we can define an unlimited/dynamic number of levels in the hierarchy, rather than the static number we currently have. The obvious way to do this would be to use a web block which references itself, however this is of course not possible!

Is there any obvious way to do this/ any good forge components I should look to?



Nice Question.


I've actually come across a great widget which seems to solve this very effectively:

If anyone has this issue, check it out: