$page->nextInvisible([$sort, $direction])
Returns the next invisible sibling
-
$sort (string)
An optional sort field for the siblings -
$direction (string)
An optional sort direction -
return ($page)
Example
<?php if($next = $page->nextInvisible()): ?>
<a href="<?= $next->url() ?>">next invisible page</a>
<?php endif ?>
Using sort field
<?php if($next = $page->nextInvisible('date', 'desc')): ?>
<a href="<?= $next->url() ?>">next invisible page</a>
<?php endif ?>