$pages->invisible()

Returns all invisible $page objects from the collection

  • return ($pages)

Example

<h2>Invisible subpages</h2>
<ul>
  <?php foreach($page->children()->invisible() as $subpage): ?>
  <li>
    <a href="<?= $subpage->url() ?>">
      <?= html($subpage->title()) ?>
    </a>
  </li>
  <?php endforeach ?>
</ul>