AI OnAI Off
An easy solution is to create your own displaytemplate for contentarea or change the rendering of contentarea. This old but still useful blogpost might help you: http://joelabrahamsson.com/custom-rendering-of-content-areas/
In my opinon the extra div should not be a problem but as a former fron-end lover I also understand that we should not have more html then we use :)
Hi!
What would you say is the easiest way to get rid of extra DIV-tags when rendering content areas (MVC mode)?
I've tried this
@Html.PropertyFor(p => p.CurrentPage.MainContentArea, new { hascontainer = false })
But still an extra DIV is added.
Googling I've seen example of custom content area renderers but to me that seems overkill and messy.