Hey,
im using a Structure Field for dates. The code looks like this and works fine:
<?php foreach($page->termine()->toStructure()->sortBy('date', 'asc') as $termin): ?>
<time datetime="<?php echo $termin->date('c') ?>"><?php echo $termin->date('d.m.Y') ?></time>
<?php echo $termin->titel()->kirbytext() ?>
<?php endforeach ?>
The Blueprint is:
termine:
label: Termine
type: structure
style: table
fields:
titel:
label: Titel
type: text
date:
label: Datum
type: date
format: DD.MM.YYYY
default: today
Is it possible to hide entries automatically when the day of the date is over?
Thanks in advance
Christian