Is it possible to check if an editor field is empty? The normal isEmpty() does not work:
<?php if ($page->offerSum()->isEmpty()):?>Shop<?php else: ?>Offer<?php endif; ?>
Is it possible to check if an editor field is empty? The normal isEmpty() does not work:
<?php if ($page->offerSum()->isEmpty()):?>Shop<?php else: ?>Offer<?php endif; ?>
You should be able to do this:
<?php if ($page->offerSum()->blocks()->isEmpty()):?>Shop<?php else: ?>Offer<?php endif; ?>