One or more image uploads (sortable)
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: InputfieldFile, Inputfield, WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Inputfield | int | for backwards compatibility only | |
Inputfield | int | Quality setting to use for client-side resize. 60=60%, 90=90%, etc. (default=90). | |
Inputfield | bool int | Switch min-/maxWidth and min-/maxHeight restriction for portrait images | |
Inputfield | string | Field name to use for linking to image editor (default=current Inputfield name) | |
Inputfield | string | Space separated list of allowed image extensions (default="JPG JPEG GIF PNG") | |
Inputfield | string | May be 'on', 'off', or 'zoom' | |
Inputfield Inputfield Inputfield | array bool mixed string null | Get setting or attribute | |
Inputfield Inputfield Inputfield | array | Get thumbnail image info | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Configure field | |
Inputfield | string | Default grid mode in admin, one of "grid", "left" or "list" (default="grid") | |
Inputfield | int | squared size of the admin thumbnails (default=130) | |
Inputfield | array | Options to pass along to the ImageSizer class. See /wire/config.php $imageSizerOptions for details. | |
Inputfield | string | Space separated CSS classes for items rendered by this Inputfield. Generally you should append rather than replace. | |
Inputfield | int string | Max height for uploaded images, larger will be sized down (default='') | |
Inputfield | bool int | Reject images that exceed max allowed size? (default=false) | |
Inputfield | float | Maximum number of megapixels for client-side resize, i.e. 1.7 is ~1600x1000, alt. to maxWidth/maxHeight (default=0). | |
Inputfield | int string | Max width for uploaded images, larger will be sized down (default='') | |
Inputfield | int string | Min height for uploaded images, smaller will be refused (default='') | |
Inputfield | int string | Min width for uploaded images, smaller will be refused (default='') | |
Inputfield | array | Array of manually whitelisted extensions, for instance [ 'SVG' ] must be manually whitelisted if allowed. (default=[]) | |
Inputfield Inputfield Inputfield | $this | Process input | |
Inputfield Inputfield Inputfield | string | Render Inputfield | |
Inputfield Inputfield Inputfield | string | ||
Inputfield Inputfield Inputfield | string | ||
Inputfield Inputfield Inputfield | bool | Called right before Inputfield render | |
Inputfield Inputfield Inputfield | string | ||
Inputfield Inputfield Inputfield | string | ||
Inputfield | int bool | Resize to max width/height at server? 1=Server-only, 0=Use client-side resize when possible (default=0). | |
Inputfield | int bool | Whether or not the modal image editor is allowed for this field (default=true) |
For hooks
These methods are only useful for hooking and should not be called directly.
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236