Skip to content

Kirby 3.7.5

$api->pages()

Returns the subpages for the given parent. The subpages can be filtered by status (draft, listed, unlisted, published, all)

$api->pages(string $parentId = null, string $status = null): Kirby\Cms\Pages

Parameters

Name Type Default
$parentId string null
$status string null

Return type

Kirby\Cms\Pages

Parent class

Kirby\Cms\Api