- πΊπΈUnited States Greg Boggs Portland Oregon
With the patch in #4 , I was able to get clean markup, however, when a view has no result, there's still bits in the array, so field group detects that it has content and still prints field groups around the empty fields even though there is no markup.
- π§πͺBelgium herved
@Greg Boggs I think you can avoid this by checking the "Hide block if the view output is empty" option which affects the block render array returned by
\Drupal\views\Plugin\views\display\Block::execute
The last patch doesn't look right to me. - πΊπΈUnited States Greg Boggs Portland Oregon
ha, yes, you are correct! I should have thought of that. Using views options is much better than my patch.
- πΊπΈUnited States Greg Boggs Portland Oregon
The hide view when empty setting does not work unfortunately. My patch in 6 does work, but it would be much better if block field respected the hide if empty setting instead of checking for no results.
- last update
about 1 year ago 5 pass, 2 fail