Developer forum

Forum » Rapido » SkipRenderBlocksList doesn't render Design

SkipRenderBlocksList doesn't render Design

Mafalda Correa
Mafalda Correa
Reply

Hi,

My expectation when using SkipRenderBlocksList is that it won't render the sub blocks of my block. As the documentation says:

    /// Use this if you want to render the sub Blocks in your own template

However, I found, that it also stops the Design from my block from rendering.

 

In the example of my code above, my expectation is that RupDetails would be rendered as a normal block, but that's not what happened, because the Design property stopped working once I set SkipRenderBlockList=true.

I noticed the code that's causing this behaviour in GridBuilder.cshtml, which is not rendering the Design if !item.SkipRenderBlockList:

To me this doesn't seem like the correct behaviour, as SkipRenderBlocksList, as the name suggests, should only impact the BlocksList, not the block itself.

Cheers


Replies

 
Olga Shedko Dynamicweb Employee
Olga Shedko
Reply

Hello Mafalda,

Thank you for that case. I've created new tfs #77580 for solving it.

Best regards,

Olga | QA

 
Olga Shedko Dynamicweb Employee
Olga Shedko
Reply

Hello Mafalda,

There was a misunderstanding here:

It works exactly as intended. The design settings will be skipped along with the blockslist rendering. The SkipRenderBlocksList are meant for use when you do not want the design settings and the associated things but want to render by yourself.

Best regards,

Olga | QA

 

You must be logged in to post in the forum