$templatesgetParentPages()

Return all possible parent pages for the given template, if predefined

Usage

// basic usage
$items = $templates->getParentPages(Template $template);

// usage with all arguments
$items = $templates->getParentPages(Template $template, bool $checkAccess = false, int $maxStatus = 0);

Arguments

NameType(s)Description
$templateTemplate
$checkAccess (optional)bool

Specify true to exclude parent pages that user doesn't have access to add pages to Default:false

$maxStatus (optional)int

Max allowed Page::status* constant Default:0 which means not applicable 3.0.138

Return value


$templates methods and properties

API reference based on ProcessWire core version 3.0.252