PageField class

Page Field (for FieldtypePage)

Configured with FieldtypePage

Configured with InputfieldPage


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the PageField class also inherits all the methods and properties of: Field, WireData and Wire.

Show class?     Show args?       Only hookable?    

Properties

NameReturnSummaryDefault
PageField::addable int bool 
PageField::allowUnpub int bool 
PageField::derefAsPage int 
PageField::findPagesCode string 
PageField::findPagesSelect string Same as findPageSelector, but configured interactively with InputfieldSelector. 
PageField::findPagesSelector string 
PageField::inputfield string Inputfield class used for input 
PageField::inputfieldClass string Public property alias of protected getInputfieldClass() method 
PageField::inputfieldClasses array 
PageField::labelFieldFormat string Formatting string for $page->getMarkup() as alternative to $labelFieldName 
PageField::labelFieldName string Field name to use for label (note: this will be "." if $labelFieldFormat is in use). 
PageField::parent_id int 
PageField::template_id int 
PageField::template_ids array 

Additional methods and properties

In addition to the methods and properties above, PageField also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.251