$page->prevUnlisted()
Returns the previous unlisted page
$page->prevUnlisted(): Kirby\Cms\Page|null
Return type
Kirby\Cms\Page
|null
Example
<?php if($prev = $page->prevUnlisted()): ?>
<a href="<?= $prev->url() ?>">previous unlisted page</a>
<?php endif ?>
Using sort field
<?php if($prev = $page->prevUnlisted('title', 'asc')): ?>
<a href="<?= $prev->url() ?>">previous unlisted page</a>
<?php endif ?>