Hi,
I've added a group x to my content type, and sometimes this group x fields is empty.
In my custom template, where I use SimpleSimon, I've tried doing this:
<?php if (!empty($cck->get( 'content_groupx_field' )->value)): ?>
<p> </p>
<div class="artikkel_info">
<h4>HEADING TO SHOW ONLY IF IT'S NOT EMPTY</h4>
<?php foreach($cck->get( 'content_groupx_field' )->value as $gx){ ?>
<a target="_blank" href="/<?php echo $gx['groupx_field1']->value; ?><?php echo $gx['groupx_field2']->value; ?>"><?php echo $gx['groupx_field3']->value; ?></a><br />
<?php } ?>
</div>
<?php endif; ?>
But the if (!empty(.... dosn't seem to do anything.
I've done about 10.000 searches in the forum and the same amount in Google. I'm now hoping one fellow Sebloder might enlighten me. :)