i've two main block on my pages, and the second block is not always filled, it can be empty.
the block2 is defined like that :
Code: Select all
<div class="shadow">
<div class="contentbox">
<div class="title">
<h2>{content block='block2title' oneline='true'}</h2>
</div>
<div class="content">
{content block='block2'}
</div>
</div>
</div>
i'd like to know if this is possible to avoid displaying this if the content is empty, like in spip, a bit like that :
Code: Select all
{ if $idontknowwhat != '' }
<div class="shadow">
<div class="contentbox">
<div class="title">
<h2>{content block='block2title' oneline='true'}</h2>
</div>
<div class="content">
{content block='block2'}
</div>
</div>
</div>
{/if}
