开发者

Drupal: empty CCK Text Area are shown with tag <br />

I'm using several CCK Text Area in my content page. The fields are optional, but if I don't fill them, I see them on the page anyway, and the content is

..

i.e.
FieldName: <br />

I would like to make them disappear instead..

I found out the problem is that CCKEditor add a

even if I'开发者_StackOverflowve never typed in that window. How can I disable this ?

thanks


You can do as is advised in this post: Hide empty CCK fields from view

// 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜