Scroll
Field completion check
Forums
[24.04.2013 21:29:05] Alexander Yakovenko (PaFFeN): Good afternoon! I apologize for the disturbance, but I have a question:
There is a logical field <?php echo render($content['field_new_product']);?> I'm displaying it in node--product.tpl.php. The issue is how to make this field not visible when the value is turned off.
[24.04.2013 21:29:45] Alexander Yakovenko (PaFFeN): Otherwise, it turns out that whether I check the box or not, the div is definitely displayed.
[24.04.2013 22:24:39] Alexander Yakovenko (PaFFeN): Are you there?
[24.04.2013 22:27:54] Lev Myshkin: Hello, please add a check
if(!empty($node->field_new_product)){
}
[24.04.2013 22:28:05] Lev Myshkin: If it's empty, then it won't be displayed.