Multiple Page selection using auto completion and sorting capability. Intended for use as an input field for Page reference fields.
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
Name | Return | Summary | |
---|---|---|---|
Inputfield | bool | Allow any value to stay in the input, even if not selectable? (default=false) | |
Inputfield | string | Autocomplete won't be triggered if input contains any of the characters in this string. (default=blank) | |
Inputfield | string | Optional selector to use for finding pages (default=blank) | |
Inputfield Inputfield Inputfield | string | Hookable since 3.0.223 | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Provide configuration options for modifying the behavior when paired with InputfieldPage | |
Inputfield | string | Format string to display in the results, overrides labelFieldName when used (default=blank). | |
Inputfield | string | Field to display in the results. (default=title) | |
Inputfield | int | Force use of this language for results | |
Inputfield | int | Maximum number of items that may be selected (0=unlimited, default). | |
Inputfield | string | Selector operator to use in performing the search (default: %=) | |
Inputfield | int | Limit results to this parent, or if combined with findPagesSelector, the search is performed as $pages->get($parent_id)->find() rather than $pages->find(). | |
Inputfield Inputfield Inputfield | $this | Convert the CSV string provided in the $input to an array of ints needed for this fieldtype | |
Inputfield Inputfield Inputfield | string | Render the autocompletion widget | |
Inputfield Inputfield Inputfield | string | ||
Inputfield Inputfield Inputfield | string | ||
Inputfield | string | Field(s) to search for text. Separate multiple by a space. (default=title) | |
Inputfield | int | Limit results to pages using this template. | |
Inputfield | array | Limit results to pages using this templates (alternate to the single template_id). | |
Inputfield | bool | When true, each word will be isolated to a separate searchFields=searchValue, which enables it to duplicate ~= operator behavior while using a %= operator (default=false). | |
Inputfield | bool | Whether or not to use a separate selected list. If false specified, selected item will be populated directly to the input. (default=true) |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236