PagesEditor::editor method
Save just a field from the given page
This is the method used by by the $page->save($field)
method.
This function is public, but the preferred manner to call it is with $page->save($field)
Usage
// basic usage
$bool = $pages->editor->saveField(Page $page, $field);
// usage with all arguments
$bool = $pages->editor->saveField(Page $page, $field, $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$page | Page | |
$field | string Field | Field object or name (string) |
$options (optional) | array string | Specify options:
|
Return value
bool
True on success
Exceptions
Method can throw exceptions on error:
WireException
See Also
$pages->editor methods and properties
API reference based on ProcessWire core version 3.0.252