Change status of page automatically depending on date

Is there a way to change the status of a page on a certain date? Think of an expiry date of a post.

As an example, I have a list of events. Once an event has reached the upcoming date it should be unlisted automatically. In the blueprint I would have two page sections, one for published and one for unlisted events, so that the admin has a tidier UI.

The best way to do that would be via a cron job that runs a script which then changes the status of all affected pages.

In the script you call via the cron job, you require the Kirby bootstrap.php to have access to Kirby (see for example first few lines here How to migrate users | Kirby CMS)

When cron is not installed, you can also use this plugin (or use it anyway in combo with cron): Queue | Kirby CMS