PageValues::getFields()

Returns a FieldsArray of all Field objects in the context of this Page

Unlike $page->fieldgroup (or its alias $page->fields), the fields returned from this method are in the context of this page/template. Meaning returned Field objects may have some properties that are different from the Field outside of the context of this page.

Usage

$items = $pageValues->getFields(Page $page);

Arguments

NameType(s)Description
$pagePage

Return value

FieldsArray

of Field objects


PageValues methods and properties

API reference based on ProcessWire core version 3.0.252