Return the markup value for a given field name or {tag} string
- If given a field name (or
name.subname
orname1|name2|name3
) it will return the markup value as defined by the fieldtype. - If given a string with field names referenced in
{tags}
, it will populate those tags and return the populated string.
Usage
$string = $pageValues->getMarkup(Page $page, string $key);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
key | string | Field name or markup string with field {name} tags in it |
Return value
string
See Also
PageValues methods and properties
API reference based on ProcessWire core version 3.0.236