SaaS CMS has officially launched! Learn more now.

Rendering inline blocks



I've just implemented the inline block function in the project I'm working on. 

I do however have some issues with the rendering of the content area. The inline blocks won't show up at all if I'm using the regular old syntax like this: 

@Html.PropertyFor(x => x.CurrentContent.ContentArea)

The inline blocks show up if I instead render my content area like this: 

<div epi-property="@Model.CurrentContent.ContentArea"/>

The problem I'm facing is that the later syntax breaks some of my other blocks since it adds an extra div. Like this: 

The empty divs should contain a layout block that doesn't show up at all because of the extra divs.

I would prefer using the later syntax for rendering my properties, but is there a way to use it without adding an extra HTML element?

If there isn't, how can I render my inline blocks with the Html.PropertyFor-method? 

Sep 13, 2023 13:01
* 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.