Hide empty CCK fields from view
Submitted by weitzman on Fri, 10/27/2006 - 19:39
Some code to hide empty CCK fields upon display.
// hide empty fields from display
if (!$items[0]['view']) return;
Put this at top of field.tpl.php, which should be copied to your theme folder as per CCK theming documentation.
- weitzman's blog
- 4186 reads
Tags:



