Posted on 08/02/2016 09:46:27
Thanks Thomas
but it's not working when i use this "@if (string.IsNullOrEmpty(GetString("DwContent(subpage-full-2)")))" it
display nothing even if there is a paragraph in this placeholder.
The thing is I have 3 placeholders and they have 3 different background colors and when the placeholder does not contain
anything it still shows a background color of that placeholder. as you can see it in a attached file.
this is my page template
<section id="content">
<div id="subpage" class="row">
<div id="subpage-full-wrapper-1" class="col-xs-12" style="background-color:@BackgroundTop;">
<div class="container">
<div id="subpage-full-1" class="dwcontent row" title="Fuld bredde top"></div>
</div>
</div>
@if (string.IsNullOrEmpty(GetString("DwContent(subpage-full-2)")))
{
<div class="subpage-full-wrapper-2 col-xs-12" style="background-color:@BackgroundMiddle;">
<div class="container">
<div id="subpage-full-2" class="dwcontent row" title="Fuld bredde midt"></div>
</div>
</div>
}
<div id="subpage-full-wrapper-3" class="col-xs-12" style="background-color:@BackgroundBottom;">
<div class="container">
<div id="subpage-full-3" class="dwcontent row" title="Fuld bredde bund"></div>
</div>
</div>
</div>
</section>
do you have any suggestions?
Regards
Aditya Bante