Developer forum

Forum » CMS - Standard features » Hide dwcontent containers

Hide dwcontent containers

Tom-Erik Paulsen
Reply

When dwcontent wrappers where introduced, the wrappers where hidden by default when DW parsed it. 

IE: <div id="main_content" class="dwcontent"></div> where removed but showed the paragraphs added inside.

Now, they persist, and I'm wondering if there is an attribute like settings="hide:true"  to be added if I don't want to show the wrapper.

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Tom

When using dwnavigation <ul class="dwnavigation"> the entire tag is removed. All other tags keeps the containing html element and it has always been like that.

In 8.6+ you can do like this to remove the containing tag: <div id="main_content" class="dwcontent" data-settings="unwrap:true"></div>.

Votes for this answer: 2
 
Tom-Erik Paulsen
Reply

Thanks a lot Nicolai Just what I was looking for ( unwrap:true )

 

You must be logged in to post in the forum