Hello,
I’m showing in my site all the blocks from a layout.
Is there a way I can skip/ignore if a row is empty and avoid a page break?
My foreach looks like this:
<?php foreach ($page->layout()->toBlocks()->filterBy('type','image') as $block): ?>
...
<?php endforeach ?>
Note that it only breaks if there’s a block type without selecting, not if there’s an empty layout row.
Thanks in advance