Renders a field value
if $fieldName is omitted (blank), a $file and $value must be provided
Usage
// basic usage
$string = $pageRender->renderField(Page $page, string $fieldName);
// usage with all arguments
$string = $pageRender->renderField(Page $page, string $fieldName, string $file = '', mixed $value = null);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
fieldName | string | |
file (optional) | string | |
value (optional) | mixed |
Return value
string
mixed
PageRender methods and properties
API reference based on ProcessWire core version 3.0.236