InputfieldPage class
An Inputfield for handling relational Page inputs
Note that this Inputfield does not collect input on its own and instead requires its inputfield
property
to contain the class name of the Inputfield module that will be collecting input. It must be either
InputfieldSelect
or another Inputfield that extends it, such as InputfieldRadios
, InputfieldCheckboxes
,
InputfieldAsmSelect
, etc.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Inputfield
class also inherits all the methods and properties of: Inputfield, WireData and Wire.
Common
For hooks
These methods are only useful for hooking and should not be called directly.
Name | Return | Summary | |
---|---|---|---|
Inputfield Inputfield Inputfield | string | Render a label for the given page |
Properties
Name | Return | Summary | Default |
---|---|---|---|
Inputfield | int bool | Provide an option for creating new pages and adding them to selection? (deafult=false) | |
Inputfield | int bool | Allow selection of unpublished pages? | false |
Inputfield | int | Make the value attribute a single Page rather than PageArray? | 0 |
Inputfield | string | Same as findPageSelector, but configured interactively with InputfieldSelector. | '' |
Inputfield | string | Selector string to use for finding selectable pages | '' |
Inputfield | string | Inputfield class used for input, i.e. `InputfieldSelect` | '' |
Inputfield | string | Read-only public property alias of protected getInputfieldClass() method. | |
Inputfield | array | Class names of Inputfields that are allowed to be used for selection | 9+ classes |
Inputfield | string | Formatting string to use (which is sent to $page->getMarkup() method) as alternative to $labelFieldName. | '' |
Inputfield | string | Field name to use for label, i.e. “title”. Note that this will be "." if $labelFieldFormat is in use. | '' |
Inputfield | int | Parent ID of pages you want to be selectable | 0 |
Inputfield | int | Single template ID used by pages you want to be selectable. | 0 |
Inputfield | array | Multiple template IDs used by pages you want to be selectable. | [] |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.251