Hi,
I have created extrafield in a div on the left of my item (as you can see on the picture joined).
Or you can see the page here :
See the page
This extrafield are called by this code :
//convertArray to use ids as key
$extrafields = array();
foreach($this->item->extra_fields as $item)
{
$extrafields[$item->id] = $item->value;
}
?>
<div class="itemExtraFieldscontenu">
<ul>
<li><h3>Durée</h3></li>
<li>
<span class="itemExtraFieldscontenuduree"><?php echo $extrafields[4];?></span>
</li>
<li><h3>Infos</h3></li>
<li>
<span class="itemExtraFieldscontenuvalue"><?php echo $extrafields[1];?></span>
</li>
<li><h3>On a dit...</h3></li>
<li>
<span class="itemExtraFieldscontenuvalue"><?php echo $extrafields[5];?></span>
</li>
</ul>
</div>
I would like to know how to make this extrafield invisible when they are empty. Anybody has an idea ? Thanks by advance...