Umbraco-cms: Allow Nested Content inside Block List Editor

Created on 15 Sep 2020  路  10Comments  路  Source: umbraco/Umbraco-CMS

Given you can natively add Nested Content inside another, it will be great to be able to do the same with the Block List editor

projecblock-editor

Most helpful comment

Yup, nesting works - and can do some pretty cool stuff: https://twitter.com/skttl/status/1303675858494861312?s=19

All 10 comments

Might be another one for @nielslyngsoe to clarify, but my understanding is that Block List is intended to replace NC - it does everything NC does, plus more, so nested Block Lists would enable the equivalent editing experience (assuming that's possible). There's also some interesting model-syncing in NC that may not play nice with Block List.

@TRexStark It's not intuitive that you can pick it and then later you will be shown that it's not supported. That's not a good experience, but that's what we have at hand currently, there are a few other editors that are not supported either. Would be lovely to improve this experience.

On the other side, the intend of Block List is to replace Nested Content. As Nathan mentions, so if you're building something new you should not use Nested Content.

Let me know if you see any difficulties with that path?

Thanks @nathanwoulfe and @nielslyngsoe ... Here's an example where I thought a nested content may be useful.

If you have a rotating banner but you would like to have a unified content for the banner, so you will have a string for a heading and a textarea for multiline content, but you would want to have multiple images rotating. So you would need a "Sub" Nested list of images to be added.

Unless if you have a suggestion on how you can achieve similar outcome without this feature?

Thanks

@TRexStark I agree with you. Umbraco team should support a nested content in a nested content here. Many situations we will need it

If you have a rotating banner but you would like to have a unified content for the banner, so you will have a string for a heading and a textarea for multiline content, but you would want to have multiple images rotating. So you would need a "Sub" Nested list of images to be added.

I'd do that either with multi media picker or by nesting another block list, with the required properties on the list element - maybe an image picker, a field for alt text and a link picker (just an example).

I don't see what nested content would offer that can't be achieved with a nested block list?

@TRexStark @duanleou90 The Block List property editor is intended as a replacement of Nested Content, there should be no job that you previously used Nested Content for that the Block List property editor cant replace. When you think Nested Content, then you should from now on just think Block List. As of upgrade reasons we cant remove Nested Content, therefore it's still around. But you should see it as deprecated and use Block List for this need instead.

Let me know if you experience any situation that Block List cant handle for you. From my perspective, I do not see any reason to use Nested Content for anything going forward. :-)

If you have a rotating banner but you would like to have a unified content for the banner, so you will have a string for a heading and a textarea for multiline content, but you would want to have multiple images rotating. So you would need a "Sub" Nested list of images to be added.

I'd do that either with multi media picker or by nesting another block list, with the required properties on the list element - maybe an image picker, a field for alt text and a link picker (just an example).

I don't see what nested content would offer that can't be achieved with a nested block list?

That's interesting, so from what i understand, you can nest Block Lists? I mean have a block list inside another?

@nielslyngsoe @nathanwoulfe I know you mean now. We can have nested Block Lists. That's great!!! Thanks for your explain

Yup, nesting works - and can do some pretty cool stuff: https://twitter.com/skttl/status/1303675858494861312?s=19

That's super great! love it.

Thanks @nathanwoulfe and @nielslyngsoe

I think this can be closed now if the goal can be achieved eventually.

Was this page helpful?
0 / 5 - 0 ratings