$page->hasPrevVisible([$sort, $direction])

Checks if the page has a previous visible sibling

  • $sort (string)
    An optional sort field for the siblings
  • $direction (string)
    An optional sort direction
  • return (boolean)

Example

<?php
echo $page->hasPrevVisible(); //will echo 1 if true, nothing if false.
?>

Using sort field

<?php
echo $page->hasPrevVisible('date', 'desc'); //will echo 1 if true, nothing if false.
?>