Hello everybody and thank you for reading,
one little question about hiding fields in a custom template.
My goal is to give my client the option to fill a special field, but if he does not wnat to or whatever, the field shout be hidden on the output.
My code looks like this...
<tr>
<td><h5><?php echo $cck->getLabel( 'field_name1' ); ?></h5></td>
<td><?php echo $cck->renderField( 'field_name1' ); ?></td>
</tr>
... and i would like to do something like this
(in my own word)
<?php "if not empty" .... ?>
<tr>
<td><h5><?php echo $cck->getLabel( 'field_name1' ); ?></h5></td>
<td><?php echo $cck->renderField( 'field_name1' ); ?></td>
</tr>
<?php } ?>
Sorry, i guess it´s a stiupid question and my english is bad.
I would be glad if someone could help me
thanks in advance
Mirco