$kirby->page()
Returns any page from the content folder
Parameters
Name | Type | Default |
---|---|---|
$id | string |null |
null |
$parent | Kirby\Cms\Page |Kirby\Cms\Site |null |
null |
$drafts | bool |
true |
Return type
Kirby\Cms\Page
|null
Parent class
Example
While the page()
helper only finds published pages, $kirby->page()
also finds drafts.