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
Name | Type(s) | Description |
---|---|---|
template | Template | |
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 |
Return value
$templates methods and properties
API reference based on ProcessWire core version 3.0.236