By geddon on
I'm using the Content Template module to display the fields that I've added through CCK. When I copy all the variables and format them accordingly, I still have the problem where blank fields display the title of the section without any content.
Can someone offer a non-developer some simple code to check if a field in the Content Template is blank and hide it accordingly? Thanks!
Comments
for example
if ($node->field_FIELDTITLE[0]['value']) print '<h2>LABEL:</h2>'.$node->field_FIELDTITLE[0]['view'].'<br />';________________________
Austrian Drupal Usergroup
________________________
Drupal Austria Association
Success!
That worked!
Thank you for illustrating one of the many reasons why I love Drupal.
Not working with URLs
The snippet works for basic text fields but isn't showing the headlines for URLs.
Any hints would be appreciated!