开发者

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

开发者 https://www.devze.com 2022-12-29 00:08 出处:网络
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'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

精彩评论

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