Page::children()

Gets the page’s children pages.

Table of Contents
  1. Description
  2. Example

Description

Page::children(?string $x = 'page', int|true $deep = 0): ?Pages;

This method returns the current page’s children as a Pages instance.

Example

$page = new Page('.\lot\page\article.page');

// Recursively list all draft pages that are children of the `$page`, then sort them descending by their `time` data!
foreach ($page->children('draft', true)->sort([-1, 'time']) as $v) { /* … */ }

Page::children()

Gets the page’s children pages.

Page::size()

Gets the file sizes in human readable string format.