Closed (fixed)
Project:
Link
Version:
5.x-2.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
6 Jun 2007 at 12:28 UTC
Updated:
12 Jun 2008 at 05:09 UTC
When displaying output from CCK using the manage display fields, (I am not using a custom content template nor do I want to in my particular instance), if the link fields are empty, I still get the label for the link field displaying in my teaser or body. Any ideas on how to suppress it?
Comments
Comment #1
quicksketchThe only way to suppress the field label if there are no values is to use contemplate or theme your output in template.php or your node.tpl.php files.
Comment #2
chadchandler commentedWould you mind posting the correct snippet to hide a label if the field is empty in a custom node.tpl.php file?
If trying to hide the label Address if the particular node is empty...something like?....
Almost?
Comment #3
mlncn commentedPossibly related request: http://drupal.org/node/198600 (do not make database entry for empty link)
Comment #4
quicksketchTake a look at the "theming" directory included with CCK installations. I'm going to close this because it's not directly a link-related request.
Comment #5
1kenthomas commentedSelf-assigning a dead issue. #4 is the correct response, roughly. Will post example code if I get a chance, in case others drop by here.