Developer forum

Forum » Templates » Is it possible to set unwrap:true on PageViewModel's @Model.Placeholder(...)

Is it possible to set unwrap:true on PageViewModel's @Model.Placeholder(...)

Roald Haahr Jensen
Reply

Hi,

Running version 9.7.2, it will generate a div for each paragraph, when rendering them with @Model.Placeholder(...). Is it possible to set unwrap:true in some way? It would have made sense if it could be included as part of the settings parameter (e.g. "default:true;sort:2;unwrap:true;"), but doing so did not omit the divs.

My current workaround is to use the old way of rendering content, where unwrap:true is set.

<div id="Content" class="dwcontent" data-settings="unwrap:true"></div>

Best regards,
Roald, Novicell


Replies

 
Roald Haahr Jensen
Reply

False alarm. It turns out it was a mistake on my behalf.

 

You must be logged in to post in the forum