November Happy Hour will be moved to Thursday December 5th.

Content area's within Blocks (Blocks in Blocks)

Vote:
 

Hello All

We are investigating using content area's within blocks so blocks can be inserted within blocks and were wondering what peoples thoughts were on this. Does any one forsee any issues. I know previously EPiServer did not recommend using Blocks in Blocks as editors can get lost in all the different views although the new UI in 8 has tidied it up alot more and simplifies alot of it.

Here is a quick example i made : http://screencast.com/t/HM20dHN6C

Thanks


Minesh

#120555
Apr 20, 2015 13:56
Vote:
 

Not sure what happend thei, HTML stripped out below

We are investigating using content area's within blocks so blocks can be inserted within blocks and were wondering what peoples thoughts were on this. Does any one forsee any issues.

I know previously EPiServer did not recommend using Blocks in Blocks as editors can get lost in all the different views although the new UI in 8 has tidied it up alot more and simplifies alot of it.

Here is a quick example i made : http://screencast.com/t/HM20dHN6C

#120556
Apr 20, 2015 13:58
Vote:
 

Hi, Minesh,

Your usecase looks quite fine to me, I don't see any issues with the approach. As long as you restrict the ContentArea to accept only certain type of block, it is very natural for the editors to use this, IMO.

What is not recommended is to overuse nested blocks for something that can be solved in a different way - ex. to simply group blocks (that could be solved with Bootstrap). I would also avoid using it too deep, block in a block in a block..., since if there is a need to use standard search, you would need to traverse through all the blocks to save the searchable properties (https://jstemerdink.wordpress.com/2014/06/06/indexing-blocks-with-episerver-search-part-2/) and it might affect performances if you have many levels.

BR,

Marija

#120561
Apr 20, 2015 15:36
Vote:
 

Is there any way to get nested blocks data with page in content delivery api?

#287496
Sep 16, 2022 9:34
Vote:
 

Out of the box its not possible although with development I think its achievable have a look at IContentModelMapper and DefaultContentModelMapper to customise what is returned in the payload. 

#287497
Sep 16, 2022 9:37
Vote:
 

Thanks for replying. While writing custom solution in Content Delivery API v3 i see that IContentModelMapper have changed and documentation is no where as of now

#287524
Sep 16, 2022 13:25
Vote:
 
#287707
Sep 20, 2022 11:40
Nitin - Sep 21, 2022 7:51
great,will try
Vote:
 

We re using ImageVault and in Optimizely its property type is MediaReference. This type is not serialized to Content Delivery API . Any tips how to serialize it?  

#288298
Sep 29, 2022 9:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.