Currently if the image is missing (e.g. the field value is empty on the current node) the field group will still render, but without a style attribute.

I'd like to be able to optionally prevent the field group from rending at all, if the image is missing. This would be done via a checkbox on the field group settings. The default setting would be to render the field groups even if they have missing fields (this would prevent the behaviour from breaking any existing field groups).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Leon Kessler created an issue. See original summary.

Leon Kessler’s picture

Status: Active » Needs review
FileSize
2.03 KB
Leon Kessler’s picture

This is better, the previous patch would just prevent the field group from rendering, but not it's children. This patch will hide the field group and all it's children.

Bart Vanhoutte’s picture

Thanks for the patch Leon, I'll check it ASAP.

Bart Vanhoutte’s picture

Status: Needs review » Fixed

Pushed to development branch, thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.