$field->empty()
Checks if the field is empty
-
return (boolean)
Example
<?php if(!$page->address()->empty()): ?>
<h2>Address</h2>
<?= $page->address()->kirbytext() ?>
<?php endif ?>
Checks if the field is empty
<?php if(!$page->address()->empty()): ?>
<h2>Address</h2>
<?= $page->address()->kirbytext() ?>
<?php endif ?>