Skip to content

Kirby 5.0.1

$pages->template()

Filter all pages by the given template

$pages->template(array|string|null $templates): Kirby\Cms\Pages

Parameters

Name Type Default
$templates arrayorstringornull no default value

Return types

Kirby\Cms\Pages

This method does not modify the existing $pages object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Pages