pages()
Helper to build pages collection
Parameters
Name | Type | Default |
---|---|---|
$id | string |array |
null |
Return type
Kirby\Cms\Pages
|null
Example
The pages()
helper fetches published pages only; ids of draft pages are ignored.