What is The Difference Between Visible/Invisible Pages?

Sorry for the lame question, but this one is bugging me - I can’t find an explanation on the docs, and can’t work it out on my own.

Visible pages can be reached via their URL, and can be seen on the Panel.

Invisible pages can be reached via their URL, and can be seen on the Panel.

Where is visibility or invisibility applied?

Visible pages will get a position for menus for example. This number is also visible in the panel.

If you list pages there’s the possibility via ->visible() to only show visible items:

  <?php foreach($page->children()->visible() as $visiblechildren): ?>
      <?php echo html($visiblechildren->title()) ?>
  <?php endforeach ?>

visible or invisible is only some kind of additional selector for your templates.
Additionally visible pages can be sorted manually, invisible pages not.

The effect this attribute has, depends only on your template. It´s all up to you :smile:

Many thanks for the info - I understand now that it’s basically a ‘flag’ that can be used for an arbitrary purpose. Good!

1 Like